Module: xenomai-gch
Branch: next
Commit: 38c2c2cddd9763b7b53f4ea85629d73a2d4a5c45
URL:    
http://git.xenomai.org/?p=xenomai-gch.git;a=commit;h=38c2c2cddd9763b7b53f4ea85629d73a2d4a5c45

Author: Gilles Chanteperdrix <gilles.chanteperd...@xenomai.org>
Date:   Sat Nov 28 09:27:21 2015 +0100

rtnet/rtcfg: fix for Linux 4.1

---

 kernel/drivers/net/stack/rtcfg/rtcfg_ioctl.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/drivers/net/stack/rtcfg/rtcfg_ioctl.c 
b/kernel/drivers/net/stack/rtcfg/rtcfg_ioctl.c
index 16d5446..0241754 100644
--- a/kernel/drivers/net/stack/rtcfg/rtcfg_ioctl.c
+++ b/kernel/drivers/net/stack/rtcfg/rtcfg_ioctl.c
@@ -304,7 +304,7 @@ int rtcfg_ioctl_add(struct rtnet_device *rtdev, struct 
rtcfg_cmd *cmd)
             goto err;
         }
 
-        file->size = filp->f_dentry->d_inode->i_size;
+        file->size = filp->f_path.dentry->d_inode->i_size;
 
         /* allocate buffer even for empty files */
         file->buffer = vmalloc((file->size)? file->size : 1);


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

Reply via email to