The patch number 9282 was added via Erik Andr?n <[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:
        [EMAIL PROTECTED]

------

From: Erik Andr?n  <[EMAIL PROTECTED]>
Properly iterate the urbs when destroying them.


Properly iterate the allocated when freeing the urbs, this fixes a memory leak

Priority: normal

Signed-off-by: Erik Andr?n <[EMAIL PROTECTED]>


---

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

diff -r e28cd0f55160 -r 161e6ebc1c5d linux/drivers/media/video/gspca/gspca.c
--- a/linux/drivers/media/video/gspca/gspca.c   Mon Oct 13 12:09:52 2008 -0200
+++ b/linux/drivers/media/video/gspca/gspca.c   Mon Oct 13 20:52:46 2008 +0200
@@ -413,7 +413,7 @@ static void destroy_urbs(struct gspca_de
        unsigned int i;
 
        PDEBUG(D_STREAM, "kill transfer");
-       for (i = 0; i < MAX_NURBS; ++i) {
+       for (i = 0; i < MAX_NURBS; i++) {
                urb = gspca_dev->urb[i];
                if (urb == NULL)
                        break;


---

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

_______________________________________________
linuxtv-commits mailing list
linuxtv-commits@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to