linux/drivers/media/usb
Julia Lawall e839776f9d [media] drivers/media/usb/{s2255drv.c, tm6000/tm6000-alsa.c, tm6000/tm6000-input.c}: Remove potential NULL dereferences
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.Lawall@lip6.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2012-08-15 19:02:27 -03:00
..
au0828 [media] rename most media/video usb drivers to media/usb 2012-08-15 16:25:07 -03:00
b2c2 [media] b2c2: frontends/tuners are not needed at the bridge binding 2012-08-13 23:52:53 -03:00
cpia2 [media] rename most media/video usb drivers to media/usb 2012-08-15 16:25:07 -03:00
cx231xx [media] move i2c files into drivers/media/i2c 2012-08-15 16:42:14 -03:00
dvb-usb [media] common: move media/common/tuners to media/tuners 2012-08-13 23:40:28 -03:00
dvb-usb-v2 [media] common: move media/common/tuners to media/tuners 2012-08-13 23:40:28 -03:00
em28xx [media] em28xx: use after free in em28xx_v4l2_close() 2012-08-15 18:49:00 -03:00
gspca [media] rename most media/video usb drivers to media/usb 2012-08-15 16:25:07 -03:00
hdpvr [media] move i2c files into drivers/media/i2c 2012-08-15 16:42:14 -03:00
pvrusb2 [media] move i2c files into drivers/media/i2c 2012-08-15 16:42:14 -03:00
pwc [media] rename most media/video usb drivers to media/usb 2012-08-15 16:25:07 -03:00
s2255 [media] drivers/media/usb/{s2255drv.c, tm6000/tm6000-alsa.c, tm6000/tm6000-input.c}: Remove potential NULL dereferences 2012-08-15 19:02:27 -03:00
siano [media] siano: break it into common, mmc and usb 2012-08-13 23:52:52 -03:00
sn9c102 [media] rename most media/video usb drivers to media/usb 2012-08-15 16:25:07 -03:00
stk1160 [media] stk1160: remove unneeded check 2012-08-15 18:53:29 -03:00
stkwebcam [media] move the remaining USB drivers to drivers/media/usb 2012-08-15 16:34:46 -03:00
tlg2300 [media] move i2c files into drivers/media/i2c 2012-08-15 16:42:14 -03:00
tm6000 [media] drivers/media/usb/{s2255drv.c, tm6000/tm6000-alsa.c, tm6000/tm6000-input.c}: Remove potential NULL dereferences 2012-08-15 19:02:27 -03:00
ttusb-budget
ttusb-dec
usbvision [media] move i2c files into drivers/media/i2c 2012-08-15 16:42:14 -03:00
uvc [media] rename most media/video usb drivers to media/usb 2012-08-15 16:25:07 -03:00
zr364xx [media] move the remaining USB drivers to drivers/media/usb 2012-08-15 16:34:46 -03:00
Kconfig [media] move the remaining USB drivers to drivers/media/usb 2012-08-15 16:34:46 -03:00
Makefile [media] move the remaining USB drivers to drivers/media/usb 2012-08-15 16:34:46 -03:00