linux/drivers/media
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
..
common V4L/DVB: drivers/media: Make static data tables and strings const 2010-10-21 01:04:52 -02:00
dvb V4L/DVB: af9015: add USB ID for Terratec Cinergy T Stick RC MKII 2010-10-21 01:04:52 -02:00
IR V4L/DVB: IR/streamzap: functional in-kernel decoding 2010-10-21 01:04:47 -02:00
radio V4L/DVB: v4l: radio: si470x: fix unneeded free_irq() call 2010-09-30 07:22:41 -03:00
video V4L/DVB: drivers/media/video/em28xx: Remove potential NULL dereference 2010-10-21 01:04:53 -02:00
Kconfig V4L/DVB (13612): IR: Move common IR code to drivers/media/IR 2009-12-16 00:18:42 -02:00
Makefile V4L/DVB (13612): IR: Move common IR code to drivers/media/IR 2009-12-16 00:18:42 -02:00