Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 531682 | Differences between
and this patch

Collapse All | Expand All

(-)vmnet-only/driver.c (-10 / +25 lines)
Lines 264-274 Link Here
264
			    struct file * filp)  // IN:
264
			    struct file * filp)  // IN:
265
{
265
{
266
   int ret = -ENOTTY;
266
   int ret = -ENOTTY;
267
267
#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 19, 0)
268
   if (filp && filp->f_op && filp->f_op->ioctl == VNetFileOpIoctl) {
268
 if (filp && filp->f_op && filp->f_op->ioctl == VNetFileOpIoctl) {
269
      ret = VNetFileOpIoctl(filp->f_dentry->d_inode, filp, iocmd, ioarg);
269
 ret = VNetFileOpIoctl(filp->f_dentry->d_inode, filp, iocmd, ioarg);
270
   }
270
 }
271
   return ret;
271
 return ret;
272
#else 
273
 if (filp && filp->f_op && filp->f_op->ioctl == VNetFileOpIoctl) {
274
 ret = VNetFileOpIoctl(filp->f_path.dentry->d_inode, filp, iocmd, ioarg);
275
 }
276
 return ret;
277
#endif
272
}
278
}
273
279
274
280
Lines 1191-1201 Link Here
1191
   struct inode *inode = NULL;
1197
   struct inode *inode = NULL;
1192
   long err;
1198
   long err;
1193
1199
1194
   if (filp && filp->f_dentry) {
1200
   #if LINUX_VERSION_CODE < KERNEL_VERSION(3, 19, 0)
1195
      inode = filp->f_dentry->d_inode;
1201
 if (filp && filp->f_dentry) {
1196
   }
1202
 inode = filp->f_dentry->d_inode;
1197
   err = VNetFileOpIoctl(inode, filp, iocmd, ioarg);
1203
 }
1198
   return err;
1204
 err = VNetFileOpIoctl(inode, filp, iocmd, ioarg);
1205
 return err;
1206
#else 
1207
 if (filp && filp->f_path.dentry) {
1208
 inode = filp->f_path.dentry->d_inode;
1209
 }
1210
 err = VNetFileOpIoctl(inode, filp, iocmd, ioarg);
1211
 return err;
1212
#endif
1213
1199
}
1214
}
1200
#endif
1215
#endif
1201
1216
(-)vmnet-only/userif.c (-1 / +7 lines)
Lines 523-529 Link Here
523
      .iov_base = buf,
523
      .iov_base = buf,
524
      .iov_len  = len,
524
      .iov_len  = len,
525
   };
525
   };
526
   return skb_copy_datagram_iovec(skb, 0, &iov, len);
526
#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 19, 0)
527
 return skb_copy_datagram_iovec(skb, 0, &iov, len);
528
#else
529
 struct iov_iter to;
530
 iov_iter_init(&to, READ, &iov, 1, len);
531
 return skb_copy_datagram_iter(skb, 0, &to, len);
532
#endif
527
}
533
}

Return to bug 531682