cfg80211: fix few minor issues in reg_process_hint()
authorIlan Peer <ilan.peer@intel.com>
Tue, 14 Jan 2014 13:17:23 +0000 (15:17 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 7 Jun 2014 17:28:10 +0000 (10:28 -0700)
commit01a6e699b573ca7b72de3339121e9872f80b49f3
tree98c70a2ba3ddc9f7bc47853ea06d246898004072
parent87e837b6dd8f7756ac55325900ff885f1689dc71
cfg80211: fix few minor issues in reg_process_hint()

commit 772f0389338cfcf96da1c178046dc7e1649ab554 upstream.

Fix the following issues in reg_process_hint():

1. Add verification that wiphy is valid before processing
   NL80211_REGDOMAIN_SET_BY_COUNTRY_IE.
2. Free the request in case of invalid initiator.
3. Remove WARN_ON check on reg_request->alpha2 as it is not a
   pointer.

Signed-off-by: Ilan Peer <ilan.peer@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Luis R. Rodriguez <mcgrof@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/wireless/reg.c