mac80211: avoid crashing when no scan sdata
authorJohannes Berg <johannes@sipsolutions.net>
Wed, 15 Apr 2009 19:33:15 +0000 (21:33 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 17 Apr 2009 19:27:13 +0000 (15:27 -0400)
commit7181d4673710888b6d7084b37b9d77ed4f4e41b2
treeba8c94b02cf57d01256d95f28f3f4fd628cf4c53
parent1269fa737f21b3f643e4b12d3ac9938b142a7f00
mac80211: avoid crashing when no scan sdata

Using the scan_sdata variable here is terribly wrong,
if there has never been a scan then we fail. However,
we need a bandaid...

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Cc: stable@kernel.org [2.6.29]
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/mlme.c