mt76: mt7915: set fops_sta_stats.owner to THIS_MODULE
authorTaehee Yoo <ap420073@gmail.com>
Thu, 8 Oct 2020 15:51:57 +0000 (15:51 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 Dec 2020 10:53:35 +0000 (11:53 +0100)
commit722faae3826ad45ea3207916f631e187ec93aab0
treeaa768b40cd143b4d6de1c3beeb9bc68a12dc5d7b
parent28f41cc1baed02f7ad2ccf597482f282299c7280
mt76: mt7915: set fops_sta_stats.owner to THIS_MODULE

[ Upstream commit 5efbe3b1b8992d5f837388091920945c23212159 ]

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

Fixes: ec9742a8f38e ("mt76: mt7915: add .sta_add_debugfs support")
Signed-off-by: Taehee Yoo <ap420073@gmail.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/mediatek/mt76/mt7915/debugfs.c