cfg80211: fix NULL dereference in IBSS SIOCGIWAP
authorZhu Yi <yi.zhu@intel.com>
Thu, 9 Jul 2009 08:59:49 +0000 (16:59 +0800)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 24 Jul 2009 19:05:09 +0000 (15:05 -0400)
commit80e5b06a1b0d9a6aa88dc5c9e93ba49510c52b45
tree08adf2317a7c57d7ee12b60375a40a4865d39a5f
parentf874011bb01e7fb19904db7f739bb343a0a53fd5
cfg80211: fix NULL dereference in IBSS SIOCGIWAP

This patch avoids memcpy from wdev->wext.ibss.bssid if it is NULL.
This could happen if we SIOCGIWAP before SIOCSIWAP.

Signed-off-by: Zhu Yi <yi.zhu@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/wireless/ibss.c