Hi,
there's a race condition upon disconnect in appledisplay.
If a button is touched during disconnect there's a window during
which the delayed work may be running. In this case the delayed
work will be scheduled again. This patch fixes that.
Regards
Oliver
Signed-off-by: Oliver Neukum <[EMAIL PROTECTED]>
--- current/drivers/usb/misc/appledisplay.c 2006-09-20 05:42:06.000000000
+0200
+++ linux-2.6.18/drivers/usb/misc/appledisplay.c 2006-09-29
21:36:19.000000000 +0200
@@ -338,7 +338,7 @@
if (pdata) {
usb_kill_urb(pdata->urb);
- cancel_delayed_work(&pdata->work);
+ cancel_rearming_delayed_workqueue(wq, &pdata->work);
backlight_device_unregister(pdata->bd);
usb_buffer_free(pdata->udev, ACD_URB_BUFFER_LEN,
pdata->urbdata, pdata->urb->transfer_dma);
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel