linux-stable/drivers/net/wireless/b43
Michael Buesch 028118a5f0 b43: Fix possible NULL pointer dereference in DMA code
This fixes a possible NULL pointer dereference in an error path of the
DMA allocation error checking code. This is also necessary for a future
DMA API change that is on its way into the mainline kernel that adds
an additional dev parameter to dma_mapping_error().

This patch moves the whole struct b43_dmaring struct initialization
right before any DMA allocation operation.

Reported-by: Miles Lane <miles.lane@gmail.com>
Signed-off-by: Michael Buesch <mb@bu3sch.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
2008-06-13 16:14:48 -04:00
..
b43.h b43: Upload both beacon templates on initial load 2008-05-28 16:43:40 -04:00
debugfs.c b43: Remove irqs_disabled() sanity checks 2008-03-24 19:25:09 -04:00
debugfs.h
dma.c b43: Fix possible NULL pointer dereference in DMA code 2008-06-13 16:14:48 -04:00
dma.h b43: Add PIO support for PCMCIA devices 2008-04-08 15:05:56 -04:00
Kconfig missing dependencies on HAS_DMA 2008-05-21 16:55:59 -07:00
leds.c PM: Remove destroy_suspended_device() 2008-04-19 19:10:28 -07:00
leds.h
lo.c b43: Fix PHY register routing 2008-01-28 15:09:32 -08:00
lo.h
main.c b43: Fix controller restart crash 2008-05-28 16:43:42 -04:00
main.h make b43_mac_{enable,suspend}() static 2008-03-13 16:01:04 -04:00
Makefile b43: Add PIO support for PCMCIA devices 2008-04-08 15:05:56 -04:00
nphy.c b43: Add more N-PHY stuff 2008-04-08 16:44:41 -04:00
nphy.h b43: Don't compile N-PHY code when N-PHY is disabled 2008-03-25 16:41:59 -04:00
pcmcia.c ssb: Turn suspend/resume upside down 2008-04-08 15:05:57 -04:00
pcmcia.h
phy.c b43: Fix HostFlags data types 2008-04-23 21:25:34 -04:00
phy.h b43: Add NPHY radio init code 2008-01-28 15:09:53 -08:00
pio.c b43: Use SSB block-I/O to do PIO 2008-04-08 16:44:41 -04:00
pio.h b43: Add PIO support for PCMCIA devices 2008-04-08 15:05:56 -04:00
rfkill.c
rfkill.h
sysfs.c cfg80211 API for channels/bitrates, mac80211 and driver conversion 2008-02-29 15:19:32 -05:00
sysfs.h
tables.c
tables.h
tables_nphy.c b43: Add lots of N-PHY lookup tables 2008-01-28 15:10:03 -08:00
tables_nphy.h b43: Add lots of N-PHY lookup tables 2008-01-28 15:10:03 -08:00
wa.c b43: pull out helpers for writing noise table 2008-03-13 16:02:33 -04:00
wa.h
xmit.c b43: Add more N-PHY stuff 2008-04-08 16:44:41 -04:00
xmit.h b43: Add more N-PHY stuff 2008-04-08 16:44:41 -04:00