OpenCloudOS-Kernel/drivers/net/wireless/brcm80211/brcmsmac
Arend van Spriel ae8e46723f brcm80211: smac: eliminate a null pointer dereference in dma.c
Though it's unlikely, di may be null, so we can't dereference
di->dma.dmactrlflags until we've checked it.

Move this de-reference after the check, and adjust the error
message to not require de-referencing di.

This is based upon Julia's original patch:
<1319846297-2985-2-git-send-email-julia@diku.dk>

Reported-by: Julia Lawall <julia@diku.dk>
Acked-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Julian Calaby <julian.calaby@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
2011-11-07 13:19:13 -05:00
..
phy
Makefile
aiutils.c
aiutils.h
ampdu.c
ampdu.h
antsel.c
antsel.h
brcms_trace_events.c
brcms_trace_events.h
channel.c brcm80211: moved function brcmu_chspec_malformed 2011-10-14 14:48:19 -04:00
channel.h
d11.h
dma.c brcm80211: smac: eliminate a null pointer dereference in dma.c 2011-11-07 13:19:13 -05:00
dma.h
mac80211_if.c brcm80211: fix sparse endianess error in mac80211_if.c 2011-10-14 14:48:17 -04:00
mac80211_if.h brcm80211: smac: decreased timer callback irq level 2011-10-14 14:48:16 -04:00
main.c brcm80211: moved function brcmu_format_flags 2011-10-14 14:48:19 -04:00
main.h brcm80211: cleanup function prototypes 2011-10-14 14:48:16 -04:00
nicpci.c
nicpci.h
otp.c
otp.h
phy_shim.c
phy_shim.h
pmu.c
pmu.h
pub.h brcm80211: cleanup function prototypes 2011-10-14 14:48:16 -04:00
rate.c
rate.h
scb.h
srom.c
srom.h
stf.c brcm80211: removed unused functions 2011-10-14 14:48:18 -04:00
stf.h
types.h
ucode_loader.c
ucode_loader.h