mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-06 16:49:22 +00:00
028118a5f0
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> |
||
---|---|---|
.. | ||
b43.h | ||
debugfs.c | ||
debugfs.h | ||
dma.c | ||
dma.h | ||
Kconfig | ||
leds.c | ||
leds.h | ||
lo.c | ||
lo.h | ||
main.c | ||
main.h | ||
Makefile | ||
nphy.c | ||
nphy.h | ||
pcmcia.c | ||
pcmcia.h | ||
phy.c | ||
phy.h | ||
pio.c | ||
pio.h | ||
rfkill.c | ||
rfkill.h | ||
sysfs.c | ||
sysfs.h | ||
tables.c | ||
tables.h | ||
tables_nphy.c | ||
tables_nphy.h | ||
wa.c | ||
wa.h | ||
xmit.c | ||
xmit.h |