Hi, Here's a quick patch that updates the module locking in the Linux 2.4.16 USB OV511 video driver. I can successfully compile the module, but cannot actually test it because I don't have suitable hardware.
Cheers, Chris --- linux-2.4.16/drivers/usb/ov511.c.orig Tue Dec 4 17:36:05 2001 +++ linux-2.4.16/drivers/usb/ov511.c Tue Dec 4 17:38:14 2001 @@ -2168,7 +2168,6 @@ struct usb_ov511 *ov511 = (struct usb_ov511 *)dev; int err; - MOD_INC_USE_COUNT; PDEBUG(4, "opening"); down(&ov511->lock); @@ -2221,8 +2220,6 @@ kfree(ov511); ov511 = NULL; } - - MOD_DEC_USE_COUNT; } static int ov511_init_done(struct video_device *dev) @@ -2783,6 +2780,7 @@ } static struct video_device ov511_template = { + owner: THIS_MODULE, name: "OV511 USB Camera", type: VID_TYPE_CAPTURE, hardware: VID_HARDWARE_OV511, _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel