projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e2c9749
)
V4L/DVB (9282): Properly iterate the urbs when destroying them.
author
Erik Andrén
<erik.andren@gmail.com>
Mon, 13 Oct 2008 18:52:46 +0000
(15:52 -0300)
committer
Mauro Carvalho Chehab
<mchehab@redhat.com>
Fri, 17 Oct 2008 20:40:18 +0000
(17:40 -0300)
Properly iterate the allocated when freeing the urbs, this fixes a memory leak
Signed-off-by: Erik Andrén <erik.andren@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/gspca/gspca.c
patch
|
blob
|
history
diff --git
a/drivers/media/video/gspca/gspca.c
b/drivers/media/video/gspca/gspca.c
index c21af312ee7c496782a792fd1f29a33946a6277c..277244b1fd75c3bb37eafae7e681b6a4c6e7d0cc 100644
(file)
--- a/
drivers/media/video/gspca/gspca.c
+++ b/
drivers/media/video/gspca/gspca.c
@@
-403,7
+403,7
@@
static void destroy_urbs(struct gspca_dev *gspca_dev)
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;