The patch number 12358 was added via Jean-Francois Moine <[email protected]>
to http://linuxtv.org/hg/v4l-dvb master development tree.

Kernel patches in this development tree may be modified to be backward
compatible with older kernels. Compatibility modifications will be
removed before inclusion into the mainstream Kernel

If anyone has any objections, please let us know by sending a message to:
        Linux Media Mailing List <[email protected]>

------

From: Jean-Francois Moine  <[email protected]>
gspca - main: Memorize the current alt before setting it.


This prevents a loop if a permanent error occurs in usb_set_interface().

Priority: normal

Signed-off-by: Jean-Francois Moine <[email protected]>


---

 linux/drivers/media/video/gspca/gspca.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff -r 5745cd8bb0f3 -r 0a809605b502 linux/drivers/media/video/gspca/gspca.c
--- a/linux/drivers/media/video/gspca/gspca.c   Tue Jul 28 09:28:45 2009 +0200
+++ b/linux/drivers/media/video/gspca/gspca.c   Tue Jul 28 09:38:25 2009 +0200
@@ -498,6 +498,7 @@
        }
        PDEBUG(D_STREAM, "use alt %d ep 0x%02x",
                        i, ep->desc.bEndpointAddress);
+       gspca_dev->alt = i;             /* memorize the current alt setting */
        if (gspca_dev->nbalt > 1) {
                ret = usb_set_interface(gspca_dev->dev, gspca_dev->iface, i);
                if (ret < 0) {
@@ -505,7 +506,6 @@
                        return NULL;
                }
        }
-       gspca_dev->alt = i;             /* memorize the current alt setting */
        return ep;
 }
 


---

Patch is available at: 
http://linuxtv.org/hg/v4l-dvb/rev/0a809605b502a41ecc0e471a912b6bfa447af003

_______________________________________________
linuxtv-commits mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to