Hi!

Here's a patch for the Philips Webcam Driver.
I had a problem for a while where an application freezed (never got out of 
ioctl) when someone pulled the plug on the camera.

Now for me the problem is solved.

(I don't hold a copy of a whole kernel, so i just copyed the file and made a 
diff of my current kernel (2.4.16), but the change is trivial...)

*** pwc-if-orig.c       Wed Oct 17 23:34:00 2001
--- pwc-if.c    Tue Dec  4 16:58:06 2001
***************
*** 1481,1486 ****
--- 1481,1491 ----
                         */
                        add_wait_queue(&pdev->frameq, &wait);
                        while (pdev->full_frames == NULL) {
+                                   if ( pdev->unplugged ) {
+                                       remove_wait_queue(&pdev->frameq, 
&wait);
+                                       set_current_state(TASK_RUNNING);
+                                       return -ENODEV;
+                                   }
                                if (signal_pending(current)) {
                                        remove_wait_queue(&pdev->frameq, 
&wait);
                                        set_current_state(TASK_RUNNING);

-- 
Mark Burazin 
[EMAIL PROTECTED]
---<>---<>---<>---<>---<>---<>---<>---<>---<>
Lemna d.o.o.
http://www.lemna.hr - [EMAIL PROTECTED]
<>---<>---<>---<>---<>---<>---<>---<>---<>---


_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to