mirror of
https://github.com/torvalds/linux.git
synced 2024-11-12 07:01:57 +00:00
V4L/DVB (9282): Properly iterate the urbs when destroying them.
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>
This commit is contained in:
parent
e2c974919f
commit
447328194e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user