Input: serio - fix blocking of parport
authorSudip Mukherjee <sudipm.mukherjee@gmail.com>
Mon, 28 Sep 2015 00:13:55 +0000 (17:13 -0700)
committerSasha Levin <sasha.levin@oracle.com>
Thu, 3 Dec 2015 04:25:47 +0000 (23:25 -0500)
commitbbdc0806b4a91db4bbb55c10be4889d7aa61e92b
tree9f56e80534c649655efba6d89e958f14c9005b7c
parentda498f694c231f6560dc84fd5b8cb5169b7607aa
Input: serio - fix blocking of parport

[ Upstream commit 1a5e251996e1b602f2ddc9261ee9de0ca1875bfa ]

If parkbd_allocate_serio() fails to allocate memory we are releasing the
parport but we missed unregistering the device. As a result this device
with exclusive access to that parport remains registered. And no other
device will be able to use that parport even though this driver has
failed to load.

Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
drivers/input/serio/parkbd.c