wok view ndiswrapper-driver/stuff/kernel-2.6.36.patch @ rev 12741
Up: ufraw (0.18) with Gimp plug-in and maintain package
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Mon May 07 23:52:05 2012 +0200 (2012-05-07) |
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 };