diff options
author | Mauro Carvalho Chehab <mchehab@kernel.org> | 2022-03-14 20:11:38 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-04-08 15:24:02 +0300 |
commit | fe440221ca0ff17ed331b7e219e82307ca5ab5cc (patch) | |
tree | 516b0ac75fc4a7b3ed3a450c33a827dfd718f9cb /Documentation | |
parent | 251a11699fe5007363cb1ae9700256a3c777a551 (diff) | |
download | linux-fe440221ca0ff17ed331b7e219e82307ca5ab5cc.tar.xz |
media: atomisp: fix bad usage at error handling logic
[ Upstream commit fc0b582c858ed73f94c8f3375c203ea46f1f7402 ]
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>
Diffstat (limited to 'Documentation')
0 files changed, 0 insertions, 0 deletions