]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
netdevsim: set .owner to THIS_MODULE
authorTaehee Yoo <ap420073@gmail.com>
Sun, 15 Nov 2020 10:30:41 +0000 (10:30 +0000)
committerJakub Kicinski <kuba@kernel.org>
Tue, 17 Nov 2020 22:08:59 +0000 (14:08 -0800)
commita5bbcbf29089a1252c201b1a7fd38151de355db9
tree701f2df0e13232e7cb174988cb6d283bf205157b
parentfd5736bf9f235d26c83cac8a16c70bbdafa55abe
netdevsim: set .owner to THIS_MODULE

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

Fixes: 82c93a87bf8b ("netdevsim: implement couple of testing devlink health reporters")
Fixes: 424be63ad831 ("netdevsim: add UDP tunnel port offload support")
Fixes: 4418f862d675 ("netdevsim: implement support for devlink region and snapshots")
Fixes: d3cbb907ae57 ("netdevsim: add ACL trap reporting cookie as a metadata")
Signed-off-by: Taehee Yoo <ap420073@gmail.com>
Link: https://lore.kernel.org/r/20201115103041.30701-1-ap420073@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/netdevsim/dev.c
drivers/net/netdevsim/health.c
drivers/net/netdevsim/udp_tunnels.c