]> git.baikalelectronics.ru Git - kernel.git/commit
cfg80211: check reg_rule for NULL in handle_channel_custom()
authorJohannes Berg <johannes.berg@intel.com>
Fri, 21 Feb 2020 09:44:50 +0000 (10:44 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 21 Feb 2020 09:59:27 +0000 (10:59 +0100)
commit58104ae72fbec19c6d1fc782b99b40626af1ee41
tree88f263c785cd701ad77cd4f467e11584b606d370
parent057f8cc14cc97689639cec9bfb773810006a9326
cfg80211: check reg_rule for NULL in handle_channel_custom()

We may end up with a NULL reg_rule after the loop in
handle_channel_custom() if the bandwidth didn't fit,
check if this is the case and bail out if so.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Link: https://lore.kernel.org/r/20200221104449.3b558a50201c.I4ad3725c4dacaefd2d18d3cc65ba6d18acd5dbfe@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/reg.c