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:
Родитель
e2c974919f
Коммит
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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче