linux/drivers/media/video/cx231xx
Julia Lawall ef60e8f5d5 [media] drivers/media/video/cx231xx/cx231xx-cards.c: add missing kfree
Clear the cx231xx_devused variable and free dev in the error handling code,
as done in the error handling code nearby.

The semantic match that finds this problem is as follows:

// <smpl>
@r@
identifier x;
@@

kfree(x)

@@
identifier r.x;
expression E1!=0,E2,E3,E4;
statement S;
@@

(
if (<+...x...+>) S
|
if (...) { ... when != kfree(x)
               when != if (...) { ... kfree(x); ... }
               when != x = E3
* return E1;
}
... when != x = E2
if (...) { ... when != x = E4
 kfree(x); ... return ...; }
)
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2011-07-27 17:55:55 -03:00
..
cx231xx-417.c [media] video/cx231xx: Fix sparse warning: Using plain integer as NULL pointer 2011-03-21 20:32:16 -03:00
cx231xx-audio.c [media] cx231xx-audio: fix some locking issues 2010-10-21 01:17:44 -02:00
cx231xx-avcore.c [media] cx231xx: Add support for Hauppauge WinTV USB2-FM 2011-07-27 17:53:06 -03:00
cx231xx-cards.c [media] drivers/media/video/cx231xx/cx231xx-cards.c: add missing kfree 2011-07-27 17:55:55 -03:00
cx231xx-conf-reg.h [media] cx231xx: Added support for Carraera, Shelby, RDx_253S and VIDEO_GRABBER 2010-10-21 01:17:10 -02:00
cx231xx-core.c [media] cx231xx: Add support for Hauppauge WinTV USB2-FM 2011-07-27 17:53:06 -03:00
cx231xx-dif.h [media] CodingStyle cleanup at s5h1432 and cx231xx 2010-10-21 01:17:45 -02:00
cx231xx-dvb.c [media] cx231xx: add support for Kworld 2011-05-20 09:28:49 -03:00
cx231xx-i2c.c [media] cx231xx: Use a generic check for TUNER_XC5000 2011-03-21 20:31:59 -03:00
cx231xx-input.c [media] cx231xx: Fix inverted bits for RC on PV Hybrid 2010-12-29 08:17:00 -02:00
cx231xx-pcb-cfg.c
cx231xx-pcb-cfg.h
cx231xx-reg.h
cx231xx-vbi.c Fix common misspellings 2011-03-31 11:26:23 -03:00
cx231xx-vbi.h [media] cx231xx: Added support for Carraera, Shelby, RDx_253S and VIDEO_GRABBER 2010-10-21 01:17:10 -02:00
cx231xx-video.c [media] Stop using linux/version.h on most video drivers 2011-07-27 17:53:12 -03:00
cx231xx.h [media] Stop using linux/version.h on most video drivers 2011-07-27 17:53:12 -03:00
Kconfig [media] rc: rename the remaining things to rc_core 2010-12-29 08:16:50 -02:00
Makefile [media] cx231xx: Add a driver for I2C-based IR 2010-12-29 08:16:28 -02:00