brcmsmac: NULL dereferences in brcms_c_detach_mfree()
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 28 Nov 2014 09:43:40 +0000 (12:43 +0300)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 1 Dec 2014 20:57:21 +0000 (15:57 -0500)
commitc0fb754bd81fafcd63644d5482ba9669d3e4fe9c
treea50074dec58a074476e5b5edbecb3a518c983bb3
parentdc50a52a36f459e0e3bed492d72a78bf64772c25
brcmsmac: NULL dereferences in brcms_c_detach_mfree()

The brcms_c_attach_malloc() function can call this with a NULL
"wlc->corestate" or "wlc->hw".

Also I threw in a bonus cleanup by deleting an obvious comment and a
no-op NULL assignment.  :)

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/brcmsmac/main.c