]> git.karo-electronics.de Git - karo-tx-linux.git/commit
rfkill: fix miscdev ops
authorJohannes Berg <johannes@sipsolutions.net>
Mon, 23 Nov 2009 10:27:30 +0000 (11:27 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 8 Dec 2009 18:21:46 +0000 (10:21 -0800)
commit899da70ca5dc094f506e82c60ef09ce5bd09bb94
treedc9a93e49e6d77cee8e782170a689ae36d13cfb4
parent8d0d5e22d59bfd6d58df4f4111bea6dd6b9f9920
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>
net/rfkill/core.c