staging: brcm80211: fix potential null pointer access handling ucode buffer
authorArend van Spriel <arend@broadcom.com>
Thu, 10 Feb 2011 11:03:45 +0000 (12:03 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 18 Feb 2011 20:48:03 +0000 (12:48 -0800)
commit8746e2baaedd45b51ceb0adbcaf2ce52bbb83598
treeb327ede62171fe0a10036ed4cb2903e13bfd9a65
parent0bef7748e1327f72b006ea699e8725be50685f0e
staging: brcm80211: fix potential null pointer access handling ucode buffer

Allocation of buffer in function wl_ucode_init_buf can fail. This was
signalled by an error message, but code continued to access the null
pointer. This is now avoided by jumping to failure label.

Reviewed-by: Roland Vossen <rvossen@broadcom.com>
Reviewed-by: Brett Rudley <brudley@broadcom.com>
Reviewed-by: Henry Ptasinski <henryp@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/brcm80211/brcmsmac/wl_mac80211.c