linux/drivers/media/usb/tm6000
Christophe JAILLET f81a18d860 [media] tm6000: Fix resource freeing in 'tm6000_prepare_isoc()'
'usb_free_urb(urb)' is a no-op, because urb is known to be NULL.

It is likelly that releasing resources allocated by
'tm6000_alloc_urb_buffers()' just a few lines above is expected here.

This has been spotted by the following coccinelle script:
@@
expression ret, x, e;
identifier f;
@@

*   if (x == NULL)
    {
     ... when != x = e;
(
*    f(<+...x...+>);
|
*    ret = f(<+...x...+>);
)
     ...
    }

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2017-04-17 13:11:45 -03:00
..
Kconfig
Makefile
tm6000-alsa.c [media] tm6000: don't break long lines 2016-10-21 09:53:59 -02:00
tm6000-cards.c [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
tm6000-core.c [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
tm6000-dvb.c [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
tm6000-i2c.c [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
tm6000-input.c scripts/spelling.txt: add "neded" pattern and fix typo instances 2017-02-27 18:43:47 -08:00
tm6000-regs.h [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
tm6000-stds.c [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
tm6000-usb-isoc.h [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
tm6000-video.c [media] tm6000: Fix resource freeing in 'tm6000_prepare_isoc()' 2017-04-17 13:11:45 -03:00
tm6000.h [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00