staging: brcm80211: bugfix for control.sta NULL ptr dereference
authorRoland Vossen <rvossen@broadcom.com>
Thu, 10 Mar 2011 10:35:07 +0000 (11:35 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 14 Mar 2011 18:44:02 +0000 (11:44 -0700)
commit8ada0be34014565dc4e57d1194d18594a5bcd161
tree6958310b287f359b27b9c3e8fe81f570e1207da8
parent0bf97bb1cff7204111c479c899dae30823314761
staging: brcm80211: bugfix for control.sta NULL ptr dereference

Mac80211 can transmit packets where the control.sta field is NULL.
The driver dereferenced this. Bugfix was to only dereference a non NULL
ieee80211_sta pointer.

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_main.c