staging: brcm80211: bugfix for NULL scb ptr dereference
authorRoland Vossen <rvossen@broadcom.com>
Thu, 10 Mar 2011 10:35:06 +0000 (11:35 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 14 Mar 2011 18:44:02 +0000 (11:44 -0700)
commit0bf97bb1cff7204111c479c899dae30823314761
tree377f4588342d49b0ef533827e7ae8fa9d10eab48
parent0789b0033112e301f086f99bd15c7d67c051a51e
staging: brcm80211: bugfix for NULL scb ptr dereference

The driver uses a struct called 'scb', this struct is primarily used for AMPDU
functionality and is embedded in struct ieee80211_sta. To increase driver
robustness, the case in which this scb pointer is NULL is now handled graceful.
This paves the way for the next patch in this series.

Signed-off-by: Roland Vossen <rvossen@broadcom.com>
Reviewed-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/brcm80211/brcmsmac/wlc_ampdu.c