OSDN Git Service

cfg80211: fix a crash in nl80211_send_station
authorFelix Fietkau <nbd@openwrt.org>
Thu, 11 Aug 2011 01:00:33 +0000 (19:00 -0600)
committerDmitry Shmidt <dimitrysh@google.com>
Wed, 29 Feb 2012 18:35:49 +0000 (10:35 -0800)
commit254c20edd7eeda7b0acc379cc30c0ecccce39a66
tree99973ebe444b0d0e57e7e2e0bc471fc641bc0211
parentd93cdf396dfed7a7fc6d7c31b59538bf52378251
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