summaryrefslogtreecommitdiffstats
path: root/drivers/media/rc/imon.c
diff options
context:
space:
mode:
authorFederico Fuga <fuga@studiofuga.com>2012-08-24 16:54:11 +0200
committerMauro Carvalho Chehab <mchehab@redhat.com>2013-03-21 22:31:51 +0100
commit15170025ee26946dc61f3c21e54652c6db4a0326 (patch)
treec92b31a5e1c00693ba39b567caa872a4ffc73b8d /drivers/media/rc/imon.c
parent[media] xc5000: fix incorrect debug printnk (diff)
downloadlinux-15170025ee26946dc61f3c21e54652c6db4a0326.tar.xz
linux-15170025ee26946dc61f3c21e54652c6db4a0326.zip
[media] Corrected Oops on omap_vout when no manager is connected
If no manager is connected to the vout device, the omapvid_init() function fails. No error condition is checked, and the device is started. Later on, when irq is serviced, a NULL pointer dereference occurs. Also, the isr routine must be registered only if no error occurs, otherwise the isr triggers without the proper setup, and the kernel oops again. To prevent this, the error condition is checked, and the streamon function exits with error. Also the isr registration call is moved after the setup procedure is completed. Reviewed-by: Prabhakar Lad <prabhakar.lad@ti.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/rc/imon.c')
0 files changed, 0 insertions, 0 deletions