linux/drivers/input/serio
Dmitry Torokhov 550eca7caf Input: serio_raw - fix memory leak when closing char device
Apparently we never freed memory allocated when users open our char
devices nor removed old users from the list of connected clients.

Also unregister misc device immediately upon disconnecting the port
instead of waiting until last user drops off (refcounting in misc
device code will make sure needed pieces stay around while they
are needed) and make sure we are not holing holding serio_raw_mutex
when registering/unregistering misc device. This should fix potential
deadlock between serio_raw and misc device code uncovered by lockdep
and reported by Thomas Tuttle.

Reviewed-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
2011-10-10 18:35:23 -07:00
..
Kconfig
Makefile
altera_ps2.c
ambakmi.c
ams_delta_serio.c
at32psif.c
ct82c710.c
gscps2.c
hil_mlc.c
hp_sdc.c
hp_sdc_mlc.c
i8042-io.h
i8042-ip22io.h
i8042-jazzio.h
i8042-ppcio.h
i8042-snirm.h
i8042-sparcio.h
i8042-unicore32io.h
i8042-x86ia64io.h
i8042.c
i8042.h
libps2.c
maceps2.c
parkbd.c
pcips2.c
ps2mult.c
q40kbd.c
rpckbd.c
sa1111ps2.c
serio.c
serio_raw.c
serport.c
xilinx_ps2.c