]> git.baikalelectronics.ru Git - kernel.git/commit
Input: serio - fix blocking of parport
authorSudip Mukherjee <sudipm.mukherjee@gmail.com>
Mon, 28 Sep 2015 00:13:55 +0000 (17:13 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 28 Sep 2015 00:32:34 +0000 (17:32 -0700)
commit90748985c15c0c845584cfde8cf8852308a23b9e
treec9e90c6c08918cfb85965b61dbbfa66dd78b7a0d
parent8913267d8e4d468e1cc4d027bb6ec2484235c035
Input: serio - fix blocking of parport

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>
drivers/input/serio/parkbd.c