linux-stable/drivers/staging/media/atomisp
Mauro Carvalho Chehab 55e343e030 media: atomisp: fix bad usage at error handling logic
[ Upstream commit fc0b582c85 ]

As warned by sparse:
	atomisp: drivers/staging/media/atomisp/pci/atomisp_acc.c:508 atomisp_acc_load_extensions() warn: iterator used outside loop: 'acc_fw'

The acc_fw interactor is used outside the loop, at the error handling
logic. On most cases, this is actually safe there, but, if
atomisp_css_set_acc_parameters() has an error, an attempt to use it
will pick an invalid value for acc_fw.

Reported-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-04-08 13:58:46 +02:00
..
i2c media: atomisp-ov2680: implement enum frame intervals 2021-11-16 14:37:09 +00:00
include media: atomisp: Remove unused header 2021-02-15 20:04:46 +01:00
pci media: atomisp: fix bad usage at error handling logic 2022-04-08 13:58:46 +02:00
Kconfig media: atomisp: auto-select VIDEO_V4L2_SUBDEV_API 2021-03-23 09:01:09 +01:00
Makefile media: atomisp: drop empty files 2021-11-17 09:29:40 +00:00
TODO media: atomisp: TODO: make it updated to the current issues 2021-11-15 08:11:44 +00:00