]> git.baikalelectronics.ru Git - 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)
commite5bcd3fbb5f6aae0db28fcb8a48bde17ed2f762f
tree701f2df0e13232e7cb174988cb6d283bf205157b
parent7c708bd246cdb25fb5b9ddc31f1334c4df91d724
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: 35e07d63aedd ("netdevsim: implement couple of testing devlink health reporters")
Fixes: 08cba40143b4 ("netdevsim: add UDP tunnel port offload support")
Fixes: e095a5a4a3b5 ("netdevsim: implement support for devlink region and snapshots")
Fixes: f4f1ce16d566 ("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