tmp_suning_uos_patched/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
..
altera_ps2.c
ambakmi.c
ams_delta_serio.c drivers: Final irq namespace conversion 2011-03-29 14:48:19 +02:00
at32psif.c Input: update author email for gpio_mouse, at32psif, and atmel-wm97xx 2011-06-29 00:26:02 -07:00
ct82c710.c
gscps2.c
hil_mlc.c
hp_sdc_mlc.c
hp_sdc.c Input: hp_sdc - staticize hp_sdc_kicker() 2011-07-18 17:10:36 -07:00
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 Input: i8042 - downgrade selftest error message to dbg() 2011-03-31 00:12:40 -07:00
i8042.h
Kconfig
libps2.c Input: libps2.c: fix comment typo arrrives. 2011-06-27 12:28:56 +02:00
maceps2.c
Makefile
parkbd.c
pcips2.c
ps2mult.c
q40kbd.c
rpckbd.c Input: rpckbd - fix a leak of the IRQ during init failure 2011-04-02 21:47:53 -07:00
sa1111ps2.c treewide: Convert uses of struct resource to resource_size(ptr) 2011-06-10 14:55:36 +02:00
serio_raw.c Input: serio_raw - fix memory leak when closing char device 2011-10-10 18:35:23 -07:00
serio.c
serport.c Revert "tty: make receive_buf() return the amout of bytes received" 2011-06-04 06:33:24 +09:00
xilinx_ps2.c input: xilinx_ps2: Add missing of_address.h header 2011-08-01 17:07:21 +01:00