Skip to content

Commit 14a2e55

Browse files
TaeheeYoosimonwunderlich
authored andcommitted
batman-adv: 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: c6c8fea ("net: Add batman-adv meshing protocol") Signed-off-by: Taehee Yoo <ap420073@gmail.com> Signed-off-by: Sven Eckelmann <sven@narfation.org> Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
1 parent f8394f2 commit 14a2e55

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

net/batman-adv/log.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@ static const struct file_operations batadv_log_fops = {
180180
.read = batadv_log_read,
181181
.poll = batadv_log_poll,
182182
.llseek = no_llseek,
183+
.owner = THIS_MODULE,
183184
};
184185

185186
/**

0 commit comments

Comments
 (0)