linux/drivers/media/video/davinci
Julia Lawall 49a0513c1f [media] drivers/media/video/davinci/vpbe_display.c: eliminate a null pointer dereference
In the original code, probe_out could be reached when res was null and then
when the irq had not yet been requested.  In those cases, the call to
free_irq is not needed, so move probe_out down and introduce a new label
for the case where calling free_irq is useful.

The semantic match that finds this problem is as follows:

// <smpl>
@r@
expression E, E1;
identifier f;
statement S1,S2,S3;
@@

if (E == NULL)
{
  ... when != if (E == NULL || ...) S1 else S2
      when != E = E1
*E->f
  ... when any
  return ...;
}
else S3
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2011-11-07 13:13:15 -02:00
..
ccdc_hw_device.h
dm355_ccdc_regs.h
dm355_ccdc.c
dm644x_ccdc_regs.h V4L/DVB: V4L: dm644x_ccdc: Add Suspend/Resume Support 2010-05-18 00:52:45 -03:00
dm644x_ccdc.c Fix common misspellings 2011-03-31 11:26:23 -03:00
isif_regs.h V4L/DVB: Fix bad whitespacing 2010-05-18 00:47:01 -03:00
isif.c V4L/DVB: V4L - vpfe capture - source for ISIF driver on DM365 2010-02-26 15:11:06 -03:00
Kconfig [media] davinci vpbe: Build infrastructure for VPBE driver 2011-07-27 17:53:10 -03:00
Makefile [media] davinci vpbe: Build infrastructure for VPBE driver 2011-07-27 17:53:10 -03:00
vpbe_display.c [media] drivers/media/video/davinci/vpbe_display.c: eliminate a null pointer dereference 2011-11-07 13:13:15 -02:00
vpbe_osd_regs.h [media] davinci vpbe: OSD(On Screen Display) block 2011-07-27 17:53:10 -03:00
vpbe_osd.c [media] davinci vpbe: Use resource_size() 2011-09-21 14:10:34 -03:00
vpbe_venc_regs.h [media] davinci vpbe: VENC( Video Encoder) implementation 2011-07-27 17:53:10 -03:00
vpbe_venc.c [media] davinci vpbe: VENC( Video Encoder) implementation 2011-07-27 17:53:10 -03:00
vpbe.c [media] davinci vpbe: VPBE display driver 2011-07-27 17:53:09 -03:00
vpfe_capture.c Fix common misspellings 2011-03-31 11:26:23 -03:00
vpif_capture.c [media] Stop using linux/version.h on the remaining video drivers 2011-07-27 17:53:16 -03:00
vpif_capture.h [media] Stop using linux/version.h on the remaining video drivers 2011-07-27 17:53:16 -03:00
vpif_display.c [media] Stop using linux/version.h on the remaining video drivers 2011-07-27 17:53:16 -03:00
vpif_display.h [media] Stop using linux/version.h on the remaining video drivers 2011-07-27 17:53:16 -03:00
vpif.c treewide: Convert uses of struct resource to resource_size(ptr) 2011-06-10 14:55:36 +02:00
vpif.h [media] vpif_cap/disp: Cleanup, improved comments 2011-01-19 11:28:19 -02:00
vpss.c tree-wide: fix comment/printk typos 2010-11-01 15:38:34 -04:00