Hi,
And while I'm at it, here is a module-locking patch for the USB
scanner devices.
Cheers,
Chris
--- linux-2.4.16/drivers/usb/scanner.c.orig Wed Dec 5 00:18:19 2001
+++ linux-2.4.16/drivers/usb/scanner.c Wed Dec 5 00:19:29 2001
@@ -348,8 +348,6 @@
int err=0;
- MOD_INC_USE_COUNT;
-
down(&scn_mutex);
scn_minor = USB_SCN_MINOR(inode);
@@ -399,9 +397,6 @@
up(&(scn->sem)); /* Wake up any possible contending processes */
- if (err)
- MOD_DEC_USE_COUNT;
-
return err;
}
@@ -432,8 +427,6 @@
up(&scn_mutex);
up(&(scn->sem));
- MOD_DEC_USE_COUNT;
-
return 0;
}
@@ -771,6 +764,7 @@
static struct
file_operations usb_scanner_fops = {
+ owner: THIS_MODULE,
read: read_scanner,
write: write_scanner,
ioctl: ioctl_scanner,
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel