Linux-Bluetooth Archive on lore.kernel.org
 help / color / Atom feed
From: Taehee Yoo <ap420073@gmail.com>
To: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org
Cc: ap420073@gmail.com, linux-wireless@vger.kernel.org,
	wil6210@qti.qualcomm.com, b43-dev@lists.infradead.org,
	linux-bluetooth@vger.kernel.org
Subject: [PATCH net 033/117] wl1271: set DEBUGFS_FWSTATS_FILE.owner to THIS_MODULE
Date: Thu,  8 Oct 2020 15:50:45 +0000
Message-ID: <20201008155209.18025-33-ap420073@gmail.com> (raw)
In-Reply-To: <20201008155209.18025-1-ap420073@gmail.com>

If THIS_MODULE is not set, the module would be removed while debugfs is
being used.
It eventually makes kernel panic.

Fixes: f5fc0f86b02a ("wl1271: add wl1271 driver files")
Signed-off-by: Taehee Yoo <ap420073@gmail.com>
---
 drivers/net/wireless/ti/wlcore/debugfs.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/net/wireless/ti/wlcore/debugfs.h b/drivers/net/wireless/ti/wlcore/debugfs.h
index 9cc2dee42f51..681dead95e0c 100644
--- a/drivers/net/wireless/ti/wlcore/debugfs.h
+++ b/drivers/net/wireless/ti/wlcore/debugfs.h
@@ -69,6 +69,7 @@ static const struct file_operations sub## _ ##name## _ops = {		\
 	.read = sub## _ ##name## _read,					\
 	.open = simple_open,						\
 	.llseek	= generic_file_llseek,					\
+	.owner = THIS_MODULE,						\
 };
 
 #define DEBUGFS_FWSTATS_FILE_ARRAY(sub, name, len, struct_type)		\
-- 
2.17.1


  parent reply index

Thread overview: 119+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-08 15:50 [PATCH net 001/117] mac80211: set .owner to THIS_MODULE in debugfs_netdev.c Taehee Yoo
2020-10-08 15:50 ` [PATCH net 002/117] mac80211: set rcname_ops.owner to THIS_MODULE Taehee Yoo
2020-10-08 15:50 ` [PATCH net 003/117] mac80211: set minstrel_ht_stat_fops.owner " Taehee Yoo
2020-10-08 15:50 ` [PATCH net 004/117] mac80211: set minstrel_ht_stat_csv_fops.owner " Taehee Yoo
2020-10-08 15:50 ` [PATCH net 005/117] mac80211: set KEY_OPS.owner " Taehee Yoo
2020-10-08 15:50 ` [PATCH net 006/117] mac80211: set KEY_OPS_W.owner " Taehee Yoo
2020-10-08 15:50 ` [PATCH net 007/117] mac80211: set KEY_CONF_OPS.owner " Taehee Yoo
2020-10-08 15:50 ` [PATCH net 008/117] mac80211: set STA_OPS.owner " Taehee Yoo
2020-10-08 15:50 ` [PATCH net 009/117] mac80211: set STA_OPS_RW.owner " Taehee Yoo
2020-10-08 15:50 ` [PATCH net 010/117] mac80211: set DEBUGFS_READONLY_FILE_OPS.owner " Taehee Yoo
2020-10-08 15:50 ` [PATCH net 011/117] mac80211: set aqm_ops.owner " Taehee Yoo
2020-10-08 15:50 ` [PATCH net 012/117] mac80211: debugfs: set airtime_flags_ops.owner " Taehee Yoo
2020-10-08 15:50 ` [PATCH net 013/117] mac80211: set aql_txq_limit_ops.owner " Taehee Yoo
2020-10-08 15:50 ` [PATCH net 014/117] mac80211: set force_tx_status_ops.owner " Taehee Yoo
2020-10-08 15:50 ` [PATCH net 015/117] mac80211: set reset_ops.owner " Taehee Yoo
2020-10-08 15:50 ` [PATCH net 016/117] mac80211: set DEBUGFS_DEVSTATS_FILE.owner " Taehee Yoo
2020-10-08 15:50 ` [PATCH net 017/117] mac80211/cfg80211: set DEBUGFS_READONLY_FILE.owner " Taehee Yoo
2020-10-08 15:50 ` [PATCH net 018/117] cfg80211: set ht40allow_map_ops.owner " Taehee Yoo
2020-10-08 15:50 ` [PATCH net 019/117] net: hsr: set hsr_fops.owner " Taehee Yoo
2020-10-08 15:50 ` [PATCH net 020/117] batman-adv: set batadv_log_fops.owner " Taehee Yoo
2020-10-08 15:50 ` [PATCH net 021/117] 6lowpan: iphc: set lowpan_ctx_pfx_fops.owner " Taehee Yoo
2020-10-08 15:50 ` [PATCH net 022/117] netdevsim: set nsim_dev_health_break_fops.owner " Taehee Yoo
2020-10-08 15:50 ` [PATCH net 023/117] netdevsim: set nsim_udp_tunnels_info_reset_fops.owner " Taehee Yoo
2020-10-08 15:50 ` [PATCH net 024/117] netdevsim: set nsim_dev_take_snapshot_fops.owner " Taehee Yoo
2020-10-08 15:50 ` [PATCH net 025/117] netdevsim: set nsim_dev_trap_fa_cookie_fops.owner " Taehee Yoo
2020-10-08 15:50 ` [PATCH net 026/117] ieee802154: set test_int_fops.owner " Taehee Yoo
2020-10-08 15:50 ` [PATCH net 027/117] i2400m: set i2400m_rx_stats_fops.owner " Taehee Yoo
2020-10-08 15:50 ` [PATCH net 028/117] i2400m: set i2400m_tx_stats_fops.owner " Taehee Yoo
2020-10-08 15:50 ` [PATCH net 029/117] dpaa2-eth: set dpaa2_dbg_cpu_ops.owner " Taehee Yoo
2020-10-08 15:50 ` [PATCH net 030/117] dpaa2-eth: set dpaa2_dbg_fq_ops.owner " Taehee Yoo
2020-10-08 15:50 ` [PATCH net 031/117] dpaa2-eth: set dpaa2_dbg_ch_ops.owner " Taehee Yoo
2020-10-08 15:50 ` [PATCH net 032/117] wl1271: set DEBUGFS_READONLY_FILE.owner " Taehee Yoo
2020-10-08 15:50 ` Taehee Yoo [this message]
2020-10-08 15:50 ` [PATCH net 034/117] wlcore: set DEBUGFS_FWSTATS_FILE_ARRAY.owner " Taehee Yoo
2020-10-08 15:50 ` [PATCH net 035/117] wl12xx: " Taehee Yoo
2020-10-08 15:50 ` [PATCH net 036/117] wl12xx: set DEBUGFS_READONLY_FILE.owner " Taehee Yoo
2020-10-08 15:50 ` [PATCH net 037/117] wl12xx: set tx_queue_len_ops.owner " Taehee Yoo
2020-10-08 15:50 ` [PATCH net 038/117] wl1251: set tx_queue_status_ops.owner " Taehee Yoo
2020-10-08 15:50 ` [PATCH net 039/117] iwlwifi: set rs_sta_dbgfs_scale_table_ops.owner " Taehee Yoo
2020-10-08 15:50 ` [PATCH net 040/117] iwlwifi: set rs_sta_dbgfs_stats_table_ops.owner " Taehee Yoo
2020-10-08 15:50 ` [PATCH net 041/117] iwlwifi: set DEBUGFS_READ_FILE_OPS.owner " Taehee Yoo
2020-10-08 15:50 ` [PATCH net 042/117] iwlwifi: set DEBUGFS_WRITE_FILE_OPS.owner " Taehee Yoo
2020-10-08 15:50 ` [PATCH net 043/117] iwlwifi: set DEBUGFS_READ_WRITE_FILE_OPS.owner " Taehee Yoo
2020-10-08 15:50 ` [PATCH net 044/117] iwlwifi: set rs_sta_dbgfs_scale_table_ops.owner " Taehee Yoo
2020-10-08 15:50 ` [PATCH net 045/117] iwlwifi: set rs_sta_dbgfs_stats_table_ops.owner " Taehee Yoo
2020-10-08 15:50 ` [PATCH net 046/117] iwlwifi: mvm: set rs_sta_dbgfs_drv_tx_stats_ops.owner " Taehee Yoo
2020-10-08 15:50 ` [PATCH net 047/117] iwlwifi: mvm: set .owner to THIS_MODULE in debugfs.h Taehee Yoo
2020-10-08 15:51 ` [PATCH net 048/117] iwlwifi: mvm: set iwl_dbgfs_mem_ops.owner to THIS_MODULE Taehee Yoo
2020-10-08 15:51 ` [PATCH net 049/117] iwlwifi: runtime: set _FWRT_DEBUGFS_READ_FILE_OPS.owner " Taehee Yoo
2020-10-08 15:51 ` [PATCH net 050/117] iwlwifi: runtime: set _FWRT_DEBUGFS_READ_WRITE_FILE_OPS.owner " Taehee Yoo
2020-10-08 15:51 ` [PATCH net 051/117] iwlwifi: runtime: set _FWRT_DEBUGFS_WRITE_FILE_OPS.owner " Taehee Yoo
2020-10-08 15:51 ` [PATCH net 052/117] iwlwifi: set DEBUGFS_READ_FILE_OPS.owner " Taehee Yoo
2020-10-08 15:51 ` [PATCH net 053/117] iwlwifi: set DEBUGFS_WRITE_FILE_OPS.owner " Taehee Yoo
2020-10-08 15:51 ` [PATCH net 054/117] iwlwifi: set DEBUGFS_READ_WRITE_FILE_OPS.owner " Taehee Yoo
2020-10-08 15:51 ` [PATCH net 055/117] iwlwifi: set rs_sta_dbgfs_stats_table_ops.owner " Taehee Yoo
2020-10-08 15:51 ` [PATCH net 056/117] iwlwifi: set rs_sta_dbgfs_scale_table_ops.owner " Taehee Yoo
2020-10-08 15:51 ` [PATCH net 057/117] iwlwifi: set rs_sta_dbgfs_stats_table_ops.owner " Taehee Yoo
2020-10-08 15:51 ` [PATCH net 058/117] iwlwifi: set rs_sta_dbgfs_rate_scale_data_ops.owner " Taehee Yoo
2020-10-08 15:51 ` [PATCH net 059/117] iwlagn: " Taehee Yoo
2020-10-08 15:51 ` [PATCH net 060/117] iwlagn: set DEBUGFS_READ_FILE_OPS.owner " Taehee Yoo
2020-10-08 15:51 ` [PATCH net 061/117] iwlagn: set DEBUGFS_WRITE_FILE_OPS.owner " Taehee Yoo
2020-10-08 15:51 ` [PATCH net 062/117] iwlagn: set DEBUGFS_READ_WRITE_FILE_OPS.owner " Taehee Yoo
2020-10-08 15:51 ` [PATCH net 063/117] rtlwifi: set file_ops_common.owner " Taehee Yoo
2020-10-08 15:51 ` [PATCH net 064/117] ath11k: set fops_extd_tx_stats.owner " Taehee Yoo
2020-10-08 15:51 ` [PATCH net 065/117] ath11k: set fops_extd_rx_stats.owner " Taehee Yoo
2020-10-08 15:51 ` [PATCH net 066/117] ath11k: set fops_pktlog_filter.owner " Taehee Yoo
2020-10-08 15:51 ` [PATCH net 067/117] ath11k: set fops_simulate_radar.owner " Taehee Yoo
2020-10-08 15:51 ` [PATCH net 068/117] ath10k: set fops_pktlog_filter.owner " Taehee Yoo
2020-10-08 15:51 ` [PATCH net 069/117] ath10k: set fops_quiet_period.owner " Taehee Yoo
2020-10-08 15:51 ` [PATCH net 070/117] ath10k: set fops_btcoex.owner " Taehee Yoo
2020-10-08 15:51 ` [PATCH net 071/117] ath10k: set fops_enable_extd_tx_stats.owner " Taehee Yoo
2020-10-08 15:51 ` [PATCH net 072/117] ath10k: set fops_peer_stats.owner " Taehee Yoo
2020-10-08 15:51 ` [PATCH net 073/117] wcn36xx: set fops_wcn36xx_bmps.owner " Taehee Yoo
2020-10-08 15:51 ` [PATCH net 074/117] wcn36xx: set fops_wcn36xx_dump.owner " Taehee Yoo
2020-10-08 15:51 ` [PATCH net 075/117] wireless: set fops_ioblob.owner " Taehee Yoo
2020-10-08 15:51 ` [PATCH net 076/117] wil6210: set fops_rxon.owner " Taehee Yoo
2020-10-08 15:51 ` [PATCH net 077/117] wil6210: set fops_rbufcap.owner " Taehee Yoo
2020-10-08 15:51 ` [PATCH net 078/117] wil6210: set fops_back.owner " Taehee Yoo
2020-10-08 15:51 ` [PATCH net 079/117] wil6210: set fops_pmccfg.owner " Taehee Yoo
2020-10-08 15:51 ` [PATCH net 080/117] wil6210: set fops_pmcdata.owner " Taehee Yoo
2020-10-08 15:51 ` [PATCH net 081/117] wil6210: set fops_pmcring.owner " Taehee Yoo
2020-10-08 15:51 ` [PATCH net 082/117] wil6210: set fops_txmgmt.owner " Taehee Yoo
2020-10-08 15:51 ` [PATCH net 083/117] wil6210: set fops_wmi.owner " Taehee Yoo
2020-10-08 15:51 ` [PATCH net 084/117] wil6210: set fops_recovery.owner " Taehee Yoo
2020-10-08 15:51 ` [PATCH net 085/117] wil6210: set fops_tx_latency.owner " Taehee Yoo
2020-10-08 15:51 ` [PATCH net 086/117] wil6210: set fops_link_stats.owner " Taehee Yoo
2020-10-08 15:51 ` [PATCH net 087/117] wil6210: set fops_link_stats_global.owner " Taehee Yoo
2020-10-08 15:51 ` [PATCH net 088/117] wil6210: set fops_led_cfg.owner " Taehee Yoo
2020-10-08 15:51 ` [PATCH net 089/117] wil6210: set fops_led_blink_time.owner " Taehee Yoo
2020-10-08 15:51 ` [PATCH net 090/117] wil6210: set fops_fw_capabilities.owner " Taehee Yoo
2020-10-08 15:51 ` [PATCH net 091/117] wil6210: set fops_fw_version.owner " Taehee Yoo
2020-10-08 15:51 ` [PATCH net 092/117] wil6210: set fops_suspend_stats.owner " Taehee Yoo
2020-10-08 15:51 ` [PATCH net 093/117] wil6210: set fops_compressed_rx_status.owner " Taehee Yoo
2020-10-08 15:51 ` [PATCH net 094/117] cw1200: set fops_wsm_dumps.owner " Taehee Yoo
2020-10-08 15:51 ` [PATCH net 095/117] brcmfmac: set bus_reset_fops.owner " Taehee Yoo
2020-10-08 15:51 ` [PATCH net 096/117] b43legacy: set B43legacy_DEBUGFS_FOPS.owner " Taehee Yoo
2020-10-08 15:51 ` [PATCH net 097/117] b43: set B43_DEBUGFS_FOPS.owner " Taehee Yoo
2020-10-08 15:51 ` [PATCH net 098/117] wireless: mwifiex: set .owner to THIS_MODULE in debugfs.c Taehee Yoo
2020-10-08 15:51 ` [PATCH net 099/117] net: mt7601u: set fops_ampdu_stat.owner to THIS_MODULE Taehee Yoo
2020-10-08 15:51 ` [PATCH net 100/117] net: mt7601u: set fops_eeprom_param.owner " Taehee Yoo
2020-10-08 15:51 ` [PATCH net 101/117] mt76: mt7615: set fops_ampdu_stat.owner " Taehee Yoo
2020-10-08 15:51 ` [PATCH net 102/117] mt76: mt7603: " Taehee Yoo
2020-10-08 15:51 ` [PATCH net 103/117] mt76: " Taehee Yoo
2020-10-08 15:51 ` [PATCH net 104/117] mt76: set fops_tx_stats.owner " Taehee Yoo
2020-10-08 15:51 ` [PATCH net 105/117] mt76: mt7915: set fops_sta_stats.owner " Taehee Yoo
2020-10-08 15:51 ` [PATCH net 106/117] Bluetooth: set dut_mode_fops.owner " Taehee Yoo
2020-10-08 15:51 ` [PATCH net 107/117] Bluetooth: set vendor_diag_fops.owner " Taehee Yoo
2020-10-08 15:52 ` [PATCH net 108/117] Bluetooth: set force_bredr_smp_fops.owner " Taehee Yoo
2020-10-08 15:52 ` [PATCH net 109/117] Bluetooth: set test_smp_fops.owner " Taehee Yoo
2020-10-08 15:52 ` [PATCH net 110/117] Bluetooth: set use_debug_keys_fops.owner " Taehee Yoo
2020-10-08 15:52 ` [PATCH net 111/117] Bluetooth: set sc_only_mode_fops.owner " Taehee Yoo
2020-10-08 15:52 ` [PATCH net 112/117] Bluetooth: set DEFINE_QUIRK_ATTRIBUTE.owner " Taehee Yoo
2020-10-08 15:52 ` [PATCH net 113/117] Bluetooth: set ssp_debug_mode_fops.owner " Taehee Yoo
2020-10-08 15:52 ` [PATCH net 114/117] Bluetooth: set force_static_address_fops.owner " Taehee Yoo
2020-10-08 15:52 ` [PATCH net 115/117] Bluetooth: set force_no_mitm_fops.owner " Taehee Yoo
2020-10-08 15:52 ` [PATCH net 116/117] Bluetooth: 6LoWPAN: set lowpan_control_fops.owner " Taehee Yoo
2020-10-08 15:52 ` [PATCH net 117/117] Bluetooth: set test_ecdh_fops.owner " Taehee Yoo
2020-10-08 16:06 ` [PATCH net 001/117] mac80211: set .owner to THIS_MODULE in debugfs_netdev.c Johannes Berg
2020-10-09 15:09   ` Kalle Valo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20201008155209.18025-33-ap420073@gmail.com \
    --to=ap420073@gmail.com \
    --cc=b43-dev@lists.infradead.org \
    --cc=davem@davemloft.net \
    --cc=kuba@kernel.org \
    --cc=linux-bluetooth@vger.kernel.org \
    --cc=linux-wireless@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=wil6210@qti.qualcomm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Linux-Bluetooth Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/linux-bluetooth/0 linux-bluetooth/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-bluetooth linux-bluetooth/ https://lore.kernel.org/linux-bluetooth \
		linux-bluetooth@vger.kernel.org
	public-inbox-index linux-bluetooth

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.linux-bluetooth


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git