]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
cx23885: uninitialized variable in cx23885_av_work_handler()
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 15 Mar 2016 07:05:20 +0000 (04:05 -0300)
committerBen Hutchings <ben@decadent.org.uk>
Mon, 22 Aug 2016 21:37:50 +0000 (22:37 +0100)
commit300aecc006dba19a907b7f74d44e0713f641dc39
tree7bb19317dde03d2cc7662694dcb9f4104fa94ee6
parent6d56be20f26bd3c1bcb0ddeafd7a57771290290b
cx23885: uninitialized variable in cx23885_av_work_handler()

commit 60587bd0680507f48ae3a7360983228fd207de8a upstream.

The "handled" variable could be uninitialized if the
interrupt_service_routine() call back hasn't been implimented or if it
has been implemented but doesn't initialize "handled" to zero at the
start.  For example, adv76xx_isr() only sets "handled" to true.

Fixes: 44b153ca639f ('[media] m5mols: Add ISO sensitivity controls')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/media/pci/cx23885/cx23885-av.c