Module: xenomai-3
Branch: stable-3.0.x
Commit: 4f36e3f8a998a0c86d0aa2456b29634f327caa9c
URL:    
http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=4f36e3f8a998a0c86d0aa2456b29634f327caa9c

Author: Gilles Chanteperdrix <gilles.chanteperd...@xenomai.org>
Date:   Sat Oct 31 20:56:32 2015 +0100

drivers/rtnet: forbid removing the rtnet module

if a file descriptor points to /dev/rtnet

---

 kernel/drivers/net/stack/rtnet_chrdev.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/kernel/drivers/net/stack/rtnet_chrdev.c 
b/kernel/drivers/net/stack/rtnet_chrdev.c
index a64d6da..d3f617c 100644
--- a/kernel/drivers/net/stack/rtnet_chrdev.c
+++ b/kernel/drivers/net/stack/rtnet_chrdev.c
@@ -278,7 +278,8 @@ void rtnet_unregister_ioctls(struct rtnet_ioctls *ioctls)
 
 
 static struct file_operations rtnet_fops = {
-    .unlocked_ioctl= rtnet_ioctl,
+    .owner = THIS_MODULE,
+    .unlocked_ioctl = rtnet_ioctl,
 };
 
 static struct miscdevice rtnet_chr_misc_dev = {


_______________________________________________
Xenomai-git mailing list
Xenomai-git@xenomai.org
http://xenomai.org/mailman/listinfo/xenomai-git

Reply via email to