linux/drivers/media/video/em28xx
Julia Lawall 6b81bef8cd V4L/DVB: drivers/media/video/em28xx: Remove potential NULL dereference
If the NULL test is necessary, the initialization involving a dereference of
the tested value should be moved after the NULL test.

The sematic patch that fixes this problem is as follows:
(http://coccinelle.lip6.fr/)

// <smpl>
@@
type T;
expression E;
identifier i,fld;
statement S;
@@

- T i = E->fld;
+ T i;
  ... when != E
      when != i
  if (E == NULL) S
+ i = E->fld;
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2010-10-21 01:04:53 -02:00
..
em28xx-audio.c V4L/DVB: em28xx: "Empia Em28xx Audio" too long 2010-05-18 00:51:18 -03:00
em28xx-cards.c i2c: Add support for custom probe function 2010-08-11 18:20:56 +02:00
em28xx-core.c V4L/DVB: em28xx: remove unneeded null checks 2010-06-01 01:23:23 -03:00
em28xx-dvb.c V4L/DVB: dvb: add support for kworld 340u and ub435-q to em28xx-dvb 2010-08-02 16:43:17 -03:00
em28xx-i2c.c V4L/DVB (12343): Stop defining I2C adapter IDs nobody uses 2009-09-12 12:18:13 -03:00
em28xx-input.c V4L/DVB: em28xx-input: Don't generate one debug message for every get_key read 2010-08-02 14:53:30 -03:00
em28xx-reg.h V4L/DVB (13915): em28xx: fix a typo on RC6 modes 2010-02-26 15:10:30 -03:00
em28xx-vbi.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
em28xx-video.c V4L/DVB: drivers/media/video/em28xx: Remove potential NULL dereference 2010-10-21 01:04:53 -02:00
em28xx.h V4L/DVB: dvb: add support for kworld 340u and ub435-q to em28xx-dvb 2010-08-02 16:43:17 -03:00
Kconfig V4L/DVB: fix Kconfig to depends on VIDEO_IR 2010-08-12 15:07:57 -03:00
Makefile V4L/DVB (12742): em28xx: add raw VBI support for NTSC 2009-09-18 23:47:41 -03:00