brcmsmac: fix smatch warning found in ampdu.c
authorArend van Spriel <arend@broadcom.com>
Sat, 9 Jun 2012 20:51:42 +0000 (22:51 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 13 Jun 2012 18:35:49 +0000 (14:35 -0400)
commit5e16e8ee3a14b59366d25f075926da3ca5d03d11
treecb046a56ee2ca4336ed181a40027aee3d51e7f58
parentd597ee7e28d2576ab075abdebab96d3cb65f1b54
brcmsmac: fix smatch warning found in ampdu.c

This patch fixes potential NULL pointer dereference in ampdu. This
was found running smatch static code checker. Smatch warning says:

drivers/net/wireless/brcm80211/brcmsmac/ampdu.c:741 brcms_c_sendampdu()
 warn: variable dereferenced before check 'p'

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Pieter-Paul Giesberts <pieterpg@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/brcm80211/brcmsmac/ampdu.c