linux_dsm_epyc7002/drivers/net/wireless/intel/iwlegacy
Johannes Berg 6cb5f3ea46 mac80211: populate debugfs only after cfg80211 init
When fixing the initialization race, we neglected to account for
the fact that debugfs is initialized in wiphy_register(), and
some debugfs things went missing (or rather were rerooted to the
global debugfs root).

Fix this by adding debugfs entries only after wiphy_register().
This requires some changes in the rate control code since it
currently adds debugfs at alloc time, which can no longer be
done after the reordering.

Reported-by: Jouni Malinen <j@w1.fi>
Reported-by: kernel test robot <rong.a.chen@intel.com>
Reported-by: Hauke Mehrtens <hauke@hauke-m.de>
Reported-by: Felix Fietkau <nbd@nbd.name>
Cc: stable@vger.kernel.org
Fixes: 52e04b4ce5 ("mac80211: fix race in ieee80211_register_hw()")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Acked-by: Sumit Garg <sumit.garg@linaro.org>
Link: https://lore.kernel.org/r/20200423111344.0e00d3346f12.Iadc76a03a55093d94391fc672e996a458702875d@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2020-04-24 11:30:13 +02:00
..
3945-debug.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 183 2019-05-30 11:29:20 -07:00
3945-mac.c iwlegacy: Remove unneeded variable ret 2020-03-12 15:41:22 +02:00
3945-rs.c mac80211: populate debugfs only after cfg80211 init 2020-04-24 11:30:13 +02:00
3945.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 270 2019-06-05 17:30:29 +02:00
3945.h wireless-drivers-next patches for 5.3 2019-06-26 10:12:17 -07:00
4965-calib.c
4965-debug.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 183 2019-05-30 11:29:20 -07:00
4965-mac.c iwlegacy: use <linux/units.h> helpers 2020-01-31 10:30:40 -08:00
4965-rs.c mac80211: populate debugfs only after cfg80211 init 2020-04-24 11:30:13 +02:00
4965.c iwlegacy: Remove unneeded variable ret 2020-03-12 15:41:22 +02:00
4965.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 183 2019-05-30 11:29:20 -07:00
commands.h
common.c iwlegacy: ensure loop counter addr does not wrap and cause an infinite loop 2020-01-26 17:51:47 +02:00
common.h iwlegacy: use <linux/units.h> helpers 2020-01-31 10:30:40 -08:00
csr.h
debug.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 183 2019-05-30 11:29:20 -07:00
iwl-spectrum.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 270 2019-06-05 17:30:29 +02:00
Kconfig drivers: net: Fix Kconfig indentation 2019-09-26 08:56:17 +02:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
prph.h