cfg80211: fix regulatory NULL dereference
commit737df45ddfbd5f96a9b38a16d5eef9eb7cd3a9a0
authorJohannes Berg <johannes.berg@intel.com>
Mon, 21 Nov 2011 09:44:00 +0000 (21 10:44 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 9 Dec 2011 16:54:28 +0000 (9 08:54 -0800)
treeef8f8344099979b8634e1be0f3b363595d21f94e
parent5c76953157d60ee044e23c9050347dd3405a2338
cfg80211: fix regulatory NULL dereference

commit de3584bd62d87b4c250129fbc46ca52c80330add upstream.

By the time userspace returns with a response to
the regulatory domain request, the wiphy causing
the request might have gone away. If this is so,
reject the update but mark the request as having
been processed anyway.

Cc: Luis R. Rodriguez <lrodriguez@qca.qualcomm.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/wireless/reg.c