The patch number 10379 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: Thierry MERLE  <[email protected]>
gspca - main: Use usb_make_path() for VIDIOC_QUERYCAP.


Priority: normal

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


---

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

diff -r 2813c56c0e3f -r b1a8e8ab7a2a linux/drivers/media/video/gspca/gspca.c
--- a/linux/drivers/media/video/gspca/gspca.c   Tue Jan 20 20:21:44 2009 +0100
+++ b/linux/drivers/media/video/gspca/gspca.c   Wed Jan 21 19:32:26 2009 +0100
@@ -970,8 +970,7 @@ static int vidioc_querycap(struct file *
                        le16_to_cpu(gspca_dev->dev->descriptor.idVendor),
                        le16_to_cpu(gspca_dev->dev->descriptor.idProduct));
        }
-       strncpy(cap->bus_info, gspca_dev->dev->bus->bus_name,
-               sizeof cap->bus_info);
+       usb_make_path(gspca_dev->dev, cap->bus_info, sizeof(cap->bus_info));
        cap->version = DRIVER_VERSION_NUMBER;
        cap->capabilities = V4L2_CAP_VIDEO_CAPTURE
                          | V4L2_CAP_STREAMING


---

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

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

Reply via email to