2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-30 08:04:13 +08:00
linux-next/drivers/input/misc
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
..
hp_sdc_rtc.c [PATCH] Correct misc_register return code handling in several drivers 2006-12-07 08:39:35 -08:00
ixp4xx-beeper.c IRQ: Maintain regs pointer globally rather than passing to IRQ handlers 2006-10-05 15:10:12 +01:00
Kconfig [PATCH] m68k/HP300: Enable HIL configuration options 2006-10-09 14:54:45 -07:00
m68kspkr.c Input: m68kspkr - register with driver core as a platfrom device 2005-12-21 00:52:29 -05:00
Makefile Input: kill remnants of 98kbd{,-io} and 98spkr 2006-02-15 00:49:48 -05:00
pcspkr.c Input: pcspkr - separate device and driver registration 2006-03-14 00:11:50 -05:00
sparcspkr.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
uinput.c Input: uinput - switch to the new FF interface 2006-07-19 01:41:09 -04:00
wistron_btns.c [PATCH] Use linux/io.h instead of asm/io.h 2006-10-11 11:14:23 -07:00