cfg80211: fix a crash in nl80211_send_station
authorFelix Fietkau <nbd@openwrt.org>
Thu, 11 Aug 2011 01:00:33 +0000 (19:00 -0600)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 11 Aug 2011 18:23:06 +0000 (14:23 -0400)
commit040bdf713d2bec8235f1af705e2d13da5d9baec8
tree94bf0221a212b7e88ebaccfe9c4b76f4f210bd0f
parent6a6767b046e2d336e2af06cb605106ed44a852b6
cfg80211: fix a crash in nl80211_send_station

mac80211 leaves sinfo->assoc_req_ies uninitialized, causing a random
pointer memory access in nl80211_send_station.
Instead of checking if the pointer is null, use sinfo->filled, like
the rest of the fields.

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
include/net/cfg80211.h
net/wireless/nl80211.c