summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorJohannes Berg <johannes@sipsolutions.net>2009-11-23 11:27:30 +0100
committerGreg Kroah-Hartman <gregkh@suse.de>2009-12-08 10:21:46 -0800
commit899da70ca5dc094f506e82c60ef09ce5bd09bb94 (patch)
treedc9a93e49e6d77cee8e782170a689ae36d13cfb4 /net
parent8d0d5e22d59bfd6d58df4f4111bea6dd6b9f9920 (diff)
downloadkernel-common-899da70ca5dc094f506e82c60ef09ce5bd09bb94.tar.gz
kernel-common-899da70ca5dc094f506e82c60ef09ce5bd09bb94.tar.bz2
kernel-common-899da70ca5dc094f506e82c60ef09ce5bd09bb94.zip
rfkill: fix miscdev ops
commit 45ba564d765d6165330e9bb14a197bdd348c114d upstream. The /dev/rfkill ops don't refer to the module, so it is possible to unload the module while file descriptors are open. Fix this oversight. Reported-by: Maxim Levitsky <maximlevitsky@gmail.com> Signed-off-by: Johannes Berg <johannes@sipsolutions.net> Signed-off-by: John W. Linville <linville@tuxdriver.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'net')
-rw-r--r--net/rfkill/core.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/rfkill/core.c b/net/rfkill/core.c
index 2fc4a1724eb8..d2438f940a25 100644
--- a/net/rfkill/core.c
+++ b/net/rfkill/core.c
@@ -1180,6 +1180,7 @@ static long rfkill_fop_ioctl(struct file *file, unsigned int cmd,
#endif
static const struct file_operations rfkill_fops = {
+ .owner = THIS_MODULE,
.open = rfkill_fop_open,
.read = rfkill_fop_read,
.write = rfkill_fop_write,