summaryrefslogtreecommitdiff
path: root/include/asm-m68k/div64.h
diff options
context:
space:
mode:
authorTilman Schmidt <tilman@imap.cc>2008-03-07 18:47:08 (GMT)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2008-03-07 19:06:08 (GMT)
commit5d49c101a126808a38f2a1f4eedc1fd28233e37f (patch)
treeb227dbfadf35428ea0db7cb071f5e33e22702682 /include/asm-m68k/div64.h
parent1d6789c3bc2b70bed1eb71aa616b1d94f9c23a63 (diff)
downloadlinux-fsl-qoriq-5d49c101a126808a38f2a1f4eedc1fd28233e37f.tar.xz
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 e468c04894f36045cf93d1384183a461014b6840 ("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>
Diffstat (limited to 'include/asm-m68k/div64.h')
0 files changed, 0 insertions, 0 deletions