Hi, Here's a patch against 2.4.12-ac5 that fixes a race condition in the USB scanner driver when the device is opened. This fix is also in 2.4.13-pre6.
thanks, greg k-h diff --minimal -Nru a/drivers/usb/scanner.c b/drivers/usb/scanner.c --- a/drivers/usb/scanner.c Mon Oct 22 14:43:55 2001 +++ b/drivers/usb/scanner.c Mon Oct 22 14:43:55 2001 @@ -348,6 +348,8 @@ int err=0; + MOD_INC_USE_COUNT; + down(&scn_mutex); scn_minor = USB_SCN_MINOR(inode); @@ -392,11 +394,13 @@ file->private_data = scn; /* Used by the read and write methods */ - MOD_INC_USE_COUNT; out_error: up(&(scn->sem)); /* Wake up any possible contending processes */ + + if (err) + MOD_DEC_USE_COUNT; return err; } _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel