1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/net/wireless/intel/iwlwifi/mvm
Luca Coelho 75ae663d05 iwlwifi: mvm: add rtnl_lock() in iwl_mvm_start_get_nvm()
Due to a rebase damage, we lost the rtnl_lock() when the patch was
sent out.  This causes an RTNL imbalance and failed assertions, due to
missing RTNL protection, for instance:

  RTNL: assertion failed at net/wireless/reg.c (4025)
  WARNING: CPU: 60 PID: 1720 at net/wireless/reg.c:4025 regulatory_set_wiphy_regd_sync+0x7f/0x90 [cfg80211]
  Call Trace:
   iwl_mvm_init_mcc+0x170/0x190 [iwlmvm]
   iwl_op_mode_mvm_start+0x824/0xa60 [iwlmvm]
   iwl_opmode_register+0xd0/0x130 [iwlwifi]
   init_module+0x23/0x1000 [iwlmvm]

Fix this by adding the missing rtnl_lock() back to the code.

Fixes: eb09ae93da ("iwlwifi: mvm: load regdomain at INIT stage")
Link: https://lore.kernel.org/lkml/CAHk-=wjB_zBwZ+WR9LOpvgjvaQn=cqryoKigod8QnZs=iYGEhA@mail.gmail.com/
Reported-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Acked-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2021-09-02 08:55:06 -07:00
..
binding.c iwlwifi: use SPDX tags 2020-12-10 00:15:31 +02:00
coex.c iwlwifi: use SPDX tags 2020-12-10 00:15:31 +02:00
constants.h iwlwifi: mvm: add support for range request command version 13 2021-08-26 23:38:15 +03:00
d3.c iwlwifi: mvm: support version 11 of wowlan statuses notification 2021-08-26 23:36:09 +03:00
debugfs-vif.c iwlwifi: mvm: pass the clock type to iwl_mvm_get_sync_time() 2021-06-22 15:11:09 +03:00
debugfs.c iwlwifi: convert flat GEO profile table to a struct version 2021-08-26 23:36:09 +03:00
debugfs.h iwlwifi: use SPDX tags 2020-12-10 00:15:31 +02:00
ftm-initiator.c iwlwifi: mvm: add support for range request command version 13 2021-08-26 23:38:15 +03:00
ftm-responder.c iwlwifi: mvm: add support for responder config command version 9 2021-08-26 23:38:16 +03:00
fw-api.h iwlwifi: mvm: add RFI-M support 2021-02-11 01:52:06 +02:00
fw.c iwlwifi: mvm: Read the PPAG and SAR tables at INIT stage 2021-08-26 23:36:10 +03:00
led.c iwlwifi: mvm: Fix fall-through warnings for Clang 2020-12-11 20:20:24 +02:00
mac-ctxt.c iwlwifi: mvm: support broadcast TWT alone 2021-08-26 23:38:17 +03:00
mac80211.c iwlwifi: mvm: fix access to BSS elements 2021-08-26 23:35:17 +03:00
Makefile iwlwifi: mvm: add RFI-M support 2021-02-11 01:52:06 +02:00
mvm.h iwlwifi: mvm: Read the PPAG and SAR tables at INIT stage 2021-08-26 23:36:10 +03:00
nvm.c iwlwifi: mvm: load regdomain at INIT stage 2021-08-26 23:36:10 +03:00
offloading.c iwlwifi: mvm: introduce iwl_proto_offload_cmd_v4 2021-06-22 16:57:56 +03:00
ops.c iwlwifi: mvm: add rtnl_lock() in iwl_mvm_start_get_nvm() 2021-09-02 08:55:06 -07:00
phy-ctxt.c iwlwifi: mvm: honour firmware SMPS requests 2021-06-22 15:11:34 +03:00
power.c iwlwifi: use SPDX tags 2020-12-10 00:15:31 +02:00
quota.c iwlwifi: use SPDX tags 2020-12-10 00:15:31 +02:00
rfi.c iwlwifi: mvm: fix old-style static const declaration 2021-08-26 23:33:23 +03:00
rs-fw.c iwlwifi: rs-fw: don't support stbc for HE 160 2021-04-14 12:07:20 +03:00
rs.c iwlwifi: mvm: remove PS from lower rates. 2021-04-14 12:07:19 +03:00
rs.h iwlwifi: mvm: in VHT connection use only VHT capabilities 2019-11-15 09:31:56 +02:00
rx.c iwlwifi: mvm: check more notification sizes 2021-02-05 11:52:27 +02:00
rxmq.c iwlwifi: mvm: don't use FW key ID in beacon protection 2021-08-26 23:38:18 +03:00
scan.c iwlwifi: mvm: Fix scan channel flags settings 2021-08-26 23:38:17 +03:00
sf.c iwlwifi: use SPDX tags 2020-12-10 00:15:31 +02:00
sta.c iwlwifi: mvm: simplify __iwl_mvm_set_sta_key() 2021-08-26 23:34:27 +03:00
sta.h iwlwifi: mvm: clean up queue sync implementation 2021-04-14 12:07:16 +03:00
tdls.c iwlwifi: use SPDX tags 2020-12-10 00:15:31 +02:00
testmode.h iwlwifi: remove all occurrences of the FSF address paragraph 2018-08-31 11:38:33 +03:00
time-event.c iwlwifi: mvm: don't schedule the roc_done_wk if it is already running 2021-08-26 23:37:07 +03:00
time-event.h iwlwifi: use SPDX tags 2020-12-10 00:15:31 +02:00
tt.c iwlwifi: mvm: tt: Replace thermal_notify_framework 2021-04-22 13:11:35 +02:00
tx.c mac80211: remove iwlwifi specific workaround that broke sta NDP tx 2021-06-23 11:29:13 +02:00
utils.c iwlwifi: move error dump to fw utils 2021-06-22 16:57:57 +03:00