mirror of https://gitee.com/openkylin/linux.git
5d49c101a1
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
|
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
asyncdata.c | ||
bas-gigaset.c | ||
common.c | ||
ev-layer.c | ||
gigaset.h | ||
i4l.c | ||
interface.c | ||
isocdata.c | ||
proc.c | ||
ser-gigaset.c | ||
usb-gigaset.c |