1
linux/drivers/input
Neil Horman 5d469ec0f4 [PATCH] Correct misc_register return code handling in several drivers
Clean up several code points in which the return code from misc_register is
not handled properly.

Several modules failed to deregister various hooks when misc_register fails,
and this patch cleans them up.  Also there are a few modules that legitimately
don't care about the failure status of misc register.  These drivers however
unilaterally call misc_deregister on module unload.

Since misc_register doesn't initialize the list_head in the init_routine if it
fails, the deregister operation is at risk for oopsing when list_del is
called.  The initial solution was to manually init the list in the miscdev
structure in each of those modules, but the consensus in this thread was to
consolodate and do that universally inside misc_register.

Signed-off-by: Neil Horman <nhorman@tuxdriver.com>
Cc: Bjorn Helgaas <bjorn.helgaas@hp.com>
Cc: Kylene Jo Hall <kjhall@us.ibm.com>
Cc: Dmitry Torokhov <dtor@mail.ru>
Cc: Olaf Hering <olh@suse.de>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-12-07 08:39:35 -08:00
..
gameport [PATCH] Add include/linux/freezer.h and move definitions from sched.h 2006-12-07 08:39:27 -08:00
joystick usb: iforce-usb free urb cleanup 2006-12-01 14:23:32 -08:00
keyboard WorkStruct: make allyesconfig 2006-11-22 14:57:56 +00:00
misc [PATCH] Correct misc_register return code handling in several drivers 2006-12-07 08:39:35 -08:00
mouse WorkStruct: make allyesconfig 2006-11-22 14:57:56 +00:00
serio [PATCH] Add include/linux/freezer.h and move definitions from sched.h 2006-12-07 08:39:27 -08:00
touchscreen [PATCH] slab: remove SLAB_KERNEL 2006-12-07 08:39:24 -08:00
evbug.c Input: make input_register_handler() return error codes 2006-09-14 01:32:39 -04:00
evdev.c Input: make input_register_handler() return error codes 2006-09-14 01:32:39 -04:00
ff-core.c Input: implement new force feedback interface 2006-07-19 01:40:22 -04:00
ff-memless.c Input: unified force feedback support for memoryless devices 2006-07-19 01:40:30 -04:00
fixp-arith.h Input: move fixp-arith.h to drivers/input 2006-07-19 01:40:14 -04:00
input.c Input: make input_register_handler() return error codes 2006-09-14 01:32:39 -04:00
joydev.c Input: make input_register_handler() return error codes 2006-09-14 01:32:39 -04:00
Kconfig Input: unified force feedback support for memoryless devices 2006-07-19 01:40:30 -04:00
Makefile Input: unified force feedback support for memoryless devices 2006-07-19 01:40:30 -04:00
mousedev.c Input: make input_register_handler() return error codes 2006-09-14 01:32:39 -04:00
power.c Input: make input_register_handler() return error codes 2006-09-14 01:32:39 -04:00
tsdev.c Input: make input_register_handler() return error codes 2006-09-14 01:32:39 -04:00