linux/drivers/isdn
Tilman Schmidt 5d49c101a1 gigaset: fix Oops on module unload regression
The card state mutex was only initialized when a device was connected,
but used during unload unconditionally, leading to an Oops if a driver
was loaded and unloaded again without ever connecting a device.

Fix this by initializing the mutex as soon as the structure is allocated.
Also add a missing mutex unlock revealed in the same execution path.

This fixes a possible Oops in 2.6.25-rc that was introduced by commit
e468c04894 ("Gigaset: permit module
unload").

Thanks to Roland Kletzing for reporting this problem.

Signed-off-by: Tilman Schmidt <tilman@imap.cc>
Tested-by: Roland Kletzing <devzero@web.de>
Cc: Hansjoerg Lipp <hjlipp@web.de>
Cc: Karsten Keil <kkeil@suse.de>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-03-07 11:06:08 -08:00
..
act2000 fix ! versus & precedence in various places 2008-02-06 10:40:59 -08:00
capi mount options: fix capifs 2008-02-08 09:22:40 -08:00
divert
gigaset gigaset: fix Oops on module unload regression 2008-03-07 11:06:08 -08:00
hardware drivers/isdn/hardware/eicon/debug.c: fix uninitialized var warning 2008-02-06 10:41:12 -08:00
hisax hisax_fcpcipnp: move request_irq later in probe 2008-03-04 16:35:16 -08:00
hysdn Spelling fixes: lenght->length 2008-02-03 15:42:53 +02:00
i4l drivers/isdn: correct use of ! and & 2008-03-04 16:35:16 -08:00
icn fix ! versus & precedence in various places 2008-02-06 10:40:59 -08:00
isdnloop drivers/isdn: correct use of ! and & 2008-03-04 16:35:16 -08:00
pcbit
sc [ISDN] sc: Really, really fix warning 2007-11-14 15:59:43 -08:00
Kconfig
Makefile