linux/drivers/media/video
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
..
au0828 [media] drivers/media: do not use EXTRA_CFLAGS 2011-09-03 18:50:59 -03:00
bt8xx [media] bttv: adding Sensoray 611 board to driver 2011-11-07 12:00:10 -02:00
cpia2 [media] Stop using linux/version.h on most video drivers 2011-07-27 17:53:12 -03:00
cx18 [media] cx18: Fix FM radio 2011-11-03 07:42:21 -02:00
cx88 [media] drivers/media: do not use EXTRA_CFLAGS 2011-09-03 18:50:59 -03:00
cx231xx [media] drivers/media: do not use EXTRA_CFLAGS 2011-09-03 18:50:59 -03:00
cx23885 [media] cx23885: Stop the risc video fifo before reconfiguring it 2011-10-14 17:23:20 -03:00
cx25821 [media] cx25821: off by one in cx25821_vidioc_s_input() 2011-11-03 18:33:55 -02:00
cx25840 [media] cx25840: Ensure AUDIO6 and AUDIO7 trigger line-in baseband use 2011-10-14 17:19:07 -03:00
davinci [media] drivers/media/video/davinci/vpbe_display.c: eliminate a null pointer dereference 2011-11-07 13:13:15 -02:00
em28xx [media] Support for Terratec G1 2011-11-03 18:33:57 -02:00
et61x251 [media] et61x251: Use current logging styles 2011-09-03 21:11:59 -03:00
gspca [media] gspca - main: Display the subdriver name and version at probe time 2011-09-23 23:31:52 -03:00
hdpvr [media] drivers/media: do not use EXTRA_CFLAGS 2011-09-03 18:50:59 -03:00
ivtv [media] ivtv: Fix radio support 2011-11-03 07:42:15 -02:00
m5mols [media] m5mols: Remove superfluous irq field from the platform data struct 2011-09-24 00:23:03 -03:00
marvell-ccic [media] V4L: vb2: prepare to support multi-size buffers 2011-11-03 18:28:28 -02:00
omap [media] OMAP_VOUT: Increase MAX_DISPLAYS to a larger value 2011-11-07 11:21:58 -02:00
omap3isp [media] omap3isp: preview: Add crop support on the sink pad 2011-11-03 18:33:52 -02:00
pvrusb2 [media] pvrusb2: initialize standards mask before detecting standard 2011-10-08 08:00:54 -03:00
pwc [media] V4L: vb2: prepare to support multi-size buffers 2011-11-03 18:28:28 -02:00
s5p-fimc [media] V4L: vb2: prepare to support multi-size buffers 2011-11-03 18:28:28 -02:00
s5p-mfc [media] MFC: Change MFC firmware binary name 2011-11-03 18:29:14 -02:00
s5p-tv [media] V4L: vb2: prepare to support multi-size buffers 2011-11-03 18:28:28 -02:00
saa7134 [media] saa7134: adding Sensoray boards to saa7134 driver 2011-11-07 11:58:09 -02:00
saa7164 [media] saa7164: Adding support for HVR2200 card id 0x8953 2011-09-21 10:16:31 -03:00
sn9c102 [media] return -ENOTTY for unsupported ioctl's at legacy drivers 2011-07-27 17:53:38 -03:00
tlg2300 [media] drivers/media: do not use EXTRA_CFLAGS 2011-09-03 18:50:59 -03:00
tm6000 [media] move tm6000 to drivers/media/video 2011-09-23 09:32:35 -03:00
usbvision [media] drivers/media: do not use EXTRA_CFLAGS 2011-09-03 18:50:59 -03:00
uvc Merge branch 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media 2011-10-31 15:42:54 -07:00
zoran [media] Stop using linux/version.h on most video drivers 2011-07-27 17:53:12 -03:00
adp1653.c [media] adp1653: set media entity type 2011-09-22 10:26:46 -03:00
adv7170.c [media] Make use of media bus pixel codes in adv7170 driver 2011-11-07 12:42:56 -02:00
adv7175.c [media] adv7175: Make use of media bus pixel codes 2011-10-19 07:59:05 -02:00
adv7180.c
adv7343_regs.h
adv7343.c
ak881x.c
arv.c [media] Stop using linux/version.h on most video drivers 2011-07-27 17:53:12 -03:00
atmel-isi.c [media] drivers/media/video/atmel-isi.c: eliminate a null pointer dereference 2011-11-07 13:12:24 -02:00
bt819.c [media] vpx3220, bt819: fix compiler warnings 2011-09-06 14:46:17 -03:00
bt856.c
bt866.c
btcx-risc.c
btcx-risc.h
bw-qcam.c [media] drivers/media/video: add missing kfree 2011-07-27 17:55:55 -03:00
c-qcam.c [media] drivers/media/video: add missing kfree 2011-07-27 17:55:55 -03:00
cs53l32a.c
cs5345.c
cs8420.h
cx2341x.c
fsl-viu.c [media] Stop using linux/version.h on the remaining video drivers 2011-07-27 17:53:16 -03:00
hexium_gemini.c [media] saa7146: Use current logging styles 2011-09-03 20:54:14 -03:00
hexium_orion.c [media] saa7146: Use current logging styles 2011-09-03 20:54:14 -03:00
ibmmpeg2.h
imx074.c [media] V4L: replace soc-camera specific soc_mediabus.h with v4l2-mediabus.h 2011-11-03 18:29:04 -02:00
indycam.c
indycam.h
ir-kbd-i2c.c [media] ir-kbd-i2c: pass device code w/key in hauppauge case 2011-03-22 19:24:18 -03:00
Kconfig [media] v4l: Add v4l2 subdev driver for S5K6AAFX sensor 2011-11-03 18:29:11 -02:00
ks0127.c
ks0127.h
m52790.c [media] v4l: make sure drivers supply a zeroed struct v4l2_subdev 2011-04-29 12:33:28 -03:00
Makefile [media] v4l: Add v4l2 subdev driver for S5K6AAFX sensor 2011-11-03 18:29:11 -02:00
mem2mem_testdev.c [media] V4L: vb2: prepare to support multi-size buffers 2011-11-03 18:28:28 -02:00
meye.c
meye.h
msp3400-driver.c [media] msp3400: Add standards detection to the driver 2011-10-08 08:01:34 -03:00
msp3400-driver.h [media] msp3400: Add standards detection to the driver 2011-10-08 08:01:34 -03:00
msp3400-kthreads.c [media] msp3400: Add standards detection to the driver 2011-10-08 08:01:34 -03:00
mt9m001.c [media] v4l: use i2c_smbus_read_word_swapped 2011-11-07 10:39:29 -02:00
mt9m111.c [media] v4l: use i2c_smbus_read_word_swapped 2011-11-07 10:39:29 -02:00
mt9p031.c [media] v4l: mt9p031/mt9t001: Use i2c_smbus_{read|write}_word_swapped() 2011-11-07 11:27:29 -02:00
mt9t001.c [media] v4l: mt9p031/mt9t001: Use i2c_smbus_{read|write}_word_swapped() 2011-11-07 11:27:29 -02:00
mt9t031.c [media] v4l: use i2c_smbus_read_word_swapped 2011-11-07 10:39:29 -02:00
mt9t112.c [media] V4L: replace soc-camera specific soc_mediabus.h with v4l2-mediabus.h 2011-11-03 18:29:04 -02:00
mt9v011.c [media] mt9v011: Fixed gain calculation 2011-07-27 17:52:25 -03:00
mt9v022.c [media] v4l: use i2c_smbus_read_word_swapped 2011-11-07 10:39:29 -02:00
mt9v032.c [media] v4l: use i2c_smbus_read_word_swapped 2011-11-07 10:39:29 -02:00
mx1_camera.c [media] V4L: mx1_camera: convert to the new mbus-config subdev operations 2011-11-03 18:27:43 -02:00
mx2_camera.c [media] V4L: mx2_camera: convert to the new mbus-config subdev operations 2011-11-03 18:27:44 -02:00
mx3_camera.c [media] V4L: mx3-camera: prepare to support multi-size buffers 2011-11-03 18:28:39 -02:00
mxb.c [media] saa7146: Use current logging styles 2011-09-03 20:54:14 -03:00
mxb.h
noon010pc30.c [media] noon010pc30: Remove g_chip_ident operation handler 2011-09-21 14:31:34 -03:00
omap1_camera.c [media] V4L: omap1-camera: fix Oops with NULL platform data 2011-11-03 18:28:22 -02:00
omap24xxcam-dma.c
omap24xxcam.c Merge branch 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-2.6 2011-07-30 00:08:53 -07:00
omap24xxcam.h
ov772x.c [media] V4L: replace soc-camera specific soc_mediabus.h with v4l2-mediabus.h 2011-11-03 18:29:04 -02:00
ov2640.c [media] V4L: replace soc-camera specific soc_mediabus.h with v4l2-mediabus.h 2011-11-03 18:29:04 -02:00
ov5642.c [media] media: ov5642: Add support for arbitrary resolution 2011-11-03 18:29:05 -02:00
ov6650.c [media] media: ov6650: stylistic improvements 2011-11-03 18:29:06 -02:00
ov7670.c [media] marvell-cam: Move cafe-ccic into its own directory 2011-07-27 17:53:00 -03:00
ov9640.c [media] V4L: replace soc-camera specific soc_mediabus.h with v4l2-mediabus.h 2011-11-03 18:29:04 -02:00
ov9640.h [media] ov9640: convert to the control framework 2011-11-03 18:28:36 -02:00
ov9740.c [media] V4L: replace soc-camera specific soc_mediabus.h with v4l2-mediabus.h 2011-11-03 18:29:04 -02:00
pms.c [media] Stop using linux/version.h on most video drivers 2011-07-27 17:53:12 -03:00
pxa_camera.c [media] V4L: pxa_camera: convert to the new mbus-config subdev operations 2011-11-03 18:27:50 -02:00
rj54n1cb0c.c [media] V4L: replace soc-camera specific soc_mediabus.h with v4l2-mediabus.h 2011-11-03 18:29:04 -02:00
s5k6aa.c [media] v4l: Add v4l2 subdev driver for S5K6AAFX sensor 2011-11-03 18:29:11 -02:00
s2255drv.c [media] Stop using linux/version.h on the remaining video drivers 2011-07-27 17:53:16 -03:00
saa711x_regs.h
saa717x.c
saa6588.c
saa7110.c
saa7115.c [media] saa7115: Trust that V4L2 core will fill the mask 2011-10-08 08:00:44 -03:00
saa7121.h
saa7127.c
saa7146.h
saa7146reg.h
saa7185.c
saa7191.c
saa7191.h
sh_mobile_ceu_camera.c [media] V4L: sh_mobile_ceu_camera: the host shall configure the pipeline 2011-11-03 18:28:42 -02:00
sh_mobile_csi2.c [media] V4L: sh_mobile_csi2: fix unbalanced pm_runtime_put() 2011-11-03 18:29:00 -02:00
sh_vou.c [media] Stop using linux/version.h on the remaining video drivers 2011-07-27 17:53:16 -03:00
soc_camera_platform.c [media] soc_camera: remove the now obsolete struct soc_camera_ops 2011-11-03 18:28:55 -02:00
soc_camera.c [media] V4L: soc-camera: make (almost) all client drivers re-usable outside of the framework 2011-11-03 18:29:03 -02:00
soc_mediabus.c [media] V4L: soc-camera: add helper functions for new bus configuration type 2011-11-03 18:27:13 -02:00
sr030pc30.c [media] sr030pc30: Remove empty s_stream op 2011-09-21 12:48:45 -03:00
stk-sensor.c
stk-webcam.c [media] stk-webcam.c: webcam LED bug fix 2011-09-23 23:07:59 -03:00
stk-webcam.h
tcm825x.c Fix common misspellings 2011-03-31 11:26:23 -03:00
tcm825x.h
tda7432.c [media] Correct and add some parameter descriptions 2011-07-27 17:52:59 -03:00
tda9840.c [media] v4l: make sure drivers supply a zeroed struct v4l2_subdev 2011-04-29 12:33:28 -03:00
tea6415c.c [media] v4l: make sure drivers supply a zeroed struct v4l2_subdev 2011-04-29 12:33:28 -03:00
tea6415c.h
tea6420.c [media] v4l: make sure drivers supply a zeroed struct v4l2_subdev 2011-04-29 12:33:28 -03:00
tea6420.h
ths7303.c
timblogiw.c [media] Stop using linux/version.h on most video drivers 2011-07-27 17:53:12 -03:00
tlv320aic23b.c
tuner-core.c [media] xc4000: removed card_type 2011-07-27 17:52:40 -03:00
tvaudio.c [media] tvaudio: fix compiler warnings 2011-09-06 14:44:30 -03:00
tveeprom.c [media] tveeprom: update hauppauge tuner list thru 174 2011-05-20 09:27:15 -03:00
tvp514x_regs.h
tvp514x.c
tvp5150_reg.h [media] tvp5150: Add video format registers configuration values 2011-10-08 08:01:52 -03:00
tvp5150.c
tvp7002_reg.h
tvp7002.c [media] TVP7002: Changed register values 2011-09-22 10:25:38 -03:00
tw9910.c [media] V4L: replace soc-camera specific soc_mediabus.h with v4l2-mediabus.h 2011-11-03 18:29:04 -02:00
upd64031a.c [media] v4l: make sure drivers supply a zeroed struct v4l2_subdev 2011-04-29 12:33:28 -03:00
upd64083.c [media] v4l: make sure drivers supply a zeroed struct v4l2_subdev 2011-04-29 12:33:28 -03:00
v4l2-common.c [media] v4l2-ctrls: add new bitmask control type 2011-07-27 17:55:38 -03:00
v4l2-compat-ioctl32.c [media] V4L: docbook documentation for struct v4l2_create_buffers 2011-11-03 18:28:57 -02:00
v4l2-ctrls.c [media] v4l: Add AUTO option for the V4L2_CID_POWER_LINE_FREQUENCY control 2011-11-03 18:29:09 -02:00
v4l2-dev.c [media] videodev: fix a NULL pointer dereference in v4l2_device_release() 2011-10-19 09:48:08 -02:00
v4l2-device.c [media] V4L: dynamically allocate video_device nodes in subdevices 2011-11-03 18:29:01 -02:00
v4l2-event.c [media] v4l2-ctrls/v4l2-events: small coding style cleanups 2011-07-27 17:53:34 -03:00
v4l2-fh.c [media] v4l2-event/ctrls/fh: allocate events per fh and per type instead of just per-fh 2011-07-27 17:53:31 -03:00
v4l2-int-device.c
v4l2-ioctl.c [media] V4L: add two new ioctl()s for multi-size videobuffer management 2011-11-03 18:28:24 -02:00
v4l2-mem2mem.c [media] media: mem2mem: eliminate possible NULL pointer dereference 2011-09-06 15:03:26 -03:00
v4l2-subdev.c [media] v4l subdev: add dispatching for VIDIOC_DBG_G_REGISTER and VIDIOC_DBG_S_REGISTER 2011-09-23 23:07:56 -03:00
via-camera.c [media] via-camera: disable RGB mode 2011-11-07 12:04:52 -02:00
via-camera.h
videobuf2-core.c [media] vb2: add vb2_get_unmapped_area in vb2 core 2011-11-03 18:29:13 -02:00
videobuf2-dma-contig.c [media] media: vb2: dma contig allocator: use dma_addr instread of paddr 2011-09-06 15:05:10 -03:00
videobuf2-dma-sg.c [media] videobuf2: Do not unconditionally map S/G buffers into kernel space 2011-09-03 10:57:33 -03:00
videobuf2-memops.c [media] media: vb2: fix userptr VMA release seq 2011-09-06 15:05:21 -03:00
videobuf2-vmalloc.c
videobuf-core.c
videobuf-dma-contig.c Revert "[media] V4L: videobuf, don't use dma addr as physical" 2011-04-19 10:54:44 -07:00
videobuf-dma-sg.c [media] videobuf_pages_to_sg: sglist[0] length problem 2011-07-27 17:52:19 -03:00
videobuf-dvb.c
videobuf-vmalloc.c
vino.c [media] Stop using linux/version.h on most video drivers 2011-07-27 17:53:12 -03:00
vino.h
vivi.c [media] V4L: vb2: prepare to support multi-size buffers 2011-11-03 18:28:28 -02:00
vp27smpx.c
vpx3220.c [media] vpx3220, bt819: fix compiler warnings 2011-09-06 14:46:17 -03:00
w9966.c [media] Stop using linux/version.h on most video drivers 2011-07-27 17:53:12 -03:00
wm8739.c
wm8775.c
zr364xx.c [media] drivers/media/video/zr364xx.c: add missing cleanup code 2011-09-03 18:43:58 -03:00