From: Arend van Spriel Date: Sat, 29 Oct 2011 09:30:15 +0000 (+0200) Subject: brcm80211: smac: eliminate a null pointer dereference in dma.c X-Git-Tag: v3.2-rc3~25^2~49^2^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ae8e46723f803057daff392bdc93332be2f0ec98;p=pandora-kernel.git 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 Acked-by: Arend van Spriel Signed-off-by: Julian Calaby Signed-off-by: John W. Linville --- Reading git-diff-tree failed