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)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 4 Feb 2014 20:48:14 +0000 (21:48 +0100)
commit772f0389338cfcf96da1c178046dc7e1649ab554
tree6d4f1c6ab6feeddf2f82159d6764e91c62c532cd
parent52512072738c851896c8bfa31938eba1e9b9bc62
cfg80211: fix few minor issues in reg_process_hint()

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>
net/wireless/reg.c