cfg80211: fix a crash in nl80211_send_station
authorFelix Fietkau <nbd@openwrt.org>
Thu, 11 Aug 2011 01:00:33 +0000 (19:00 -0600)
committerOm Prakash Singh <omp@nvidia.com>
Fri, 15 Jun 2012 08:45:19 +0000 (13:45 +0530)
commitc1fbf58a26c01b33196d0e4832f2ef742ff1b871
tree2e1848d22b2ee65e2db5901ba618a1051f9fd096
parenta5369a7586398d5071d4313e3bc068d8a0fd51cf
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