cfg80211: regulatory: make initialization more robust
authorJohannes Berg <johannes.berg@intel.com>
Mon, 1 Oct 2018 09:43:00 +0000 (11:43 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 2 Oct 2018 07:58:25 +0000 (09:58 +0200)
commit71e5e886806ee3f8e0c44ed945eb2e4d6659c6e3
treecfbc9830c5747b76da5205ed4c5f6c02f4b9b865
parentc70616bd8a56a7ecb79c70b7454ce7f1909ff7e0
cfg80211: regulatory: make initialization more robust

Since my change to split out the regulatory init to occur later,
any issues during earlier cfg80211_init() or errors during the
platform device allocation would lead to crashes later. Make this
more robust by checking that the earlier initialization succeeded.

Fixes: d7be102f2945 ("cfg80211: initialize regulatory keys/database later")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/reg.c