linux_dsm_epyc7002/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 b43legacy: replace limit_value macro with clamp_val 2008-05-14 16:29:33 -04:00
debugfs.c b43legacy: properly fix a bogus gcc warning 2008-01-28 15:05:02 -08:00
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 b43/b43legacy: fix my copyright notices 2008-01-28 15:04:31 -08:00
ilt.h
Kconfig missing dependencies on HAS_DMA 2008-05-21 16:55:59 -07:00
leds.c b43legacy: Fix rfkill radio LED 2008-01-28 15:07:25 -08:00
leds.h b43legacy: LED triggers support 2008-01-28 15:03:26 -08:00
main.c b43legacy: Release mutex in error handling code 2008-07-29 16:55:05 -04:00
main.h b43/b43legacy: fix my copyright notices 2008-01-28 15:04:31 -08:00
Makefile b43legacy: RF-kill support 2008-01-28 15:03:27 -08:00
phy.c b43legacy: replace limit_value macro with clamp_val 2008-05-14 16:29:33 -04:00
phy.h b43legacy: Remove the PHY spinlock 2008-01-28 15:10:42 -08:00
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 b43legacy: replace limit_value macro with clamp_val 2008-05-14 16:29:33 -04:00
radio.h b43/b43legacy: fix my copyright notices 2008-01-28 15:04:31 -08:00
rfkill.c b43/b43legacy: add RFKILL_STATE_HARD_BLOCKED support 2008-06-30 17:37:37 -04:00
rfkill.h b43legacy: rewrite and fix rfkill initialization 2008-01-28 15:04:30 -08:00
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