linux/drivers/net/wireless/b43legacy
Stefano Brivio 8dd0100ce9 b43legacy: fix DMA slot resource leakage
This fixes four resource leakages.
In any error path we must deallocate the DMA frame slots we
previously allocated by request_slot().
This is done by storing the ring pointers before doing any ring
allocation and restoring the old pointers in case of an error.

This patch by Michael Buesch has been ported to b43legacy.

Cc: Michael Buesch <mb@bu3sch.de>
Signed-off-by: Stefano Brivio <stefano.brivio@polimi.it>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
2008-02-05 14:35:46 -05:00
..
b43legacy.h b43legacy: fix MAC control and microcode init 2008-01-31 19:26:37 -08:00
debugfs.c b43legacy: properly fix a bogus gcc warning 2008-01-28 15:05:02 -08:00
debugfs.h [B43LEGACY]: add mac80211-based driver for legacy BCM43xx devices 2007-10-10 16:51:38 -07:00
dma.c b43legacy: fix DMA slot resource leakage 2008-02-05 14:35:46 -05:00
dma.h [B43LEGACY]: add mac80211-based driver for legacy BCM43xx devices 2007-10-10 16:51:38 -07:00
ilt.c b43/b43legacy: fix my copyright notices 2008-01-28 15:04:31 -08:00
ilt.h [B43LEGACY]: add mac80211-based driver for legacy BCM43xx devices 2007-10-10 16:51:38 -07:00
Kconfig b43legacy: fix kconfig dependecies for rfkill and leds 2008-01-28 15:04:37 -08: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: fix suspend/resume 2008-02-05 14:35:46 -05: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: fix MAC control and microcode init 2008-01-31 19:26:37 -08:00
phy.h b43legacy: Remove the PHY spinlock 2008-01-28 15:10:42 -08:00
pio.c b43legacy: drop packets we are not able to encrypt 2008-02-05 14:35:46 -05:00
pio.h [B43LEGACY]: add mac80211-based driver for legacy BCM43xx devices 2007-10-10 16:51:38 -07:00
radio.c b43legacy: fix MAC control and microcode init 2008-01-31 19:26:37 -08:00
radio.h b43/b43legacy: fix my copyright notices 2008-01-28 15:04:31 -08:00
rfkill.c b43legacy: fix use-after-free rfkill bug 2008-01-28 15:10:10 -08:00
rfkill.h b43legacy: rewrite and fix rfkill initialization 2008-01-28 15:04:30 -08:00
sysfs.c [B43LEGACY]: add mac80211-based driver for legacy BCM43xx devices 2007-10-10 16:51:38 -07:00
sysfs.h [B43LEGACY]: add mac80211-based driver for legacy BCM43xx devices 2007-10-10 16:51:38 -07:00
xmit.c b43legacy: drop packets we are not able to encrypt 2008-02-05 14:35:46 -05:00
xmit.h b43legacy: drop packets we are not able to encrypt 2008-02-05 14:35:46 -05:00