[media] 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)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Wed, 13 Apr 2016 20:10:32 +0000 (17:10 -0300)
commit60587bd0680507f48ae3a7360983228fd207de8a
tree5b55d2d561ab6095e473572e91f0ffaa7d3e7343
parente4bccada44c177cde31b9a236b7dfd7f76d403ed
[media] cx23885: uninitialized variable in cx23885_av_work_handler()

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>
drivers/media/pci/cx23885/cx23885-av.c