kernel-fxtec-pro1x/drivers/net/wireless/b43legacy
Julia Lawall 4104863fb4 b43legacy: Release mutex in error handling code
The mutex is released on a successful return, so it would seem that it
should be released on an error return as well.

The semantic patch finds this problem is as follows:
(http://www.emn.fr/x-info/coccinelle/)

// <smpl>
@@
expression l;
@@

mutex_lock(l);
... when != mutex_unlock(l)
    when any
    when strict
(
if (...) { ... when != mutex_unlock(l)
+   mutex_unlock(l);
    return ...;
}
|
mutex_unlock(l);
)
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Michael Buesch <mb@bu3sch.de>
Cc: stable <stable@kernel.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
2008-07-29 16:55:05 -04:00
..
b43legacy.h
debugfs.c
debugfs.h
dma.c b43legacy: Remove switch statement with 64-bit index 2008-07-08 14:16:04 -04:00
dma.h b43legacy: fix build errors when DMA or PIO are not selected 2008-06-03 15:00:16 -04:00
ilt.c
ilt.h
Kconfig
leds.c
leds.h
main.c b43legacy: Release mutex in error handling code 2008-07-29 16:55:05 -04:00
main.h
Makefile
phy.c
phy.h
pio.c mac80211: move TX info into skb->cb 2008-05-21 21:48:11 -04:00
pio.h b43legacy: fix build errors when DMA or PIO are not selected 2008-06-03 15:00:16 -04:00
radio.c
radio.h
rfkill.c b43/b43legacy: add RFKILL_STATE_HARD_BLOCKED support 2008-06-30 17:37:37 -04:00
rfkill.h
sysfs.c
sysfs.h
xmit.c mac80211: fix TX sequence numbers 2008-07-14 14:52:57 -04:00
xmit.h mac80211: move TX info into skb->cb 2008-05-21 21:48:11 -04:00