]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
brcm80211: fmac: fix a couple checking after dereference bugs
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 24 Feb 2012 06:22:27 +0000 (09:22 +0300)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 27 Feb 2012 19:06:41 +0000 (14:06 -0500)
commitd4ca00992ce0809e8cfdc452aa3f972e3be72654
tree9c45a73066a27f6f96f3b520c4ac182cca0d7c83
parent06d9b6ac75379297c6a47ee8b8d0fe8b5cedcd39
brcm80211: fmac: fix a couple checking after dereference bugs

There were two dereferencing before checking for NULL static checker
complaints in this new file.  The list cursor is never NULL so that
check can be removed.  I moved the other dereference after the check.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/brcm80211/brcmfmac/usb.c