wok-current view ndiswrapper-driver/stuff/kernel-2.6.36.patch @ rev 13130

libboost-dev: update depends
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Jul 05 12:35:50 2012 +0200 (2012-07-05)
parents
children
line source
1 --- ndiswrapper-1.56.orig/driver/loader.c 2010-02-11 03:09:32.000000000 +0100
2 +++ ndiswrapper-1.56/driver/loader.c 2010-10-24 01:38:13.000000000 +0200
3 @@ -750,13 +750,13 @@
4 }
6 /* called with loader_mutex is down */
7 -static int wrapper_ioctl(struct inode *inode, struct file *file,
8 +static long wrapper_unlocked_ioctl(struct file *file,
9 unsigned int cmd, unsigned long arg)
10 {
11 struct load_driver *load_driver;
12 struct load_device load_device;
13 struct load_driver_file load_bin_file;
14 - int ret;
15 + long ret;
16 void __user *addr = (void __user *)arg;
18 ENTER1("cmd: %u", cmd);
19 @@ -831,7 +831,7 @@
21 static struct file_operations wrapper_fops = {
22 .owner = THIS_MODULE,
23 - .ioctl = wrapper_ioctl,
24 + .unlocked_ioctl = wrapper_unlocked_ioctl,
25 .release = wrapper_ioctl_release,
26 };