diff options
author | Mauro Carvalho Chehab <mchehab@kernel.org> | 2022-03-14 20:11:38 +0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@kernel.org> | 2022-03-18 07:58:35 +0300 |
commit | fc0b582c858ed73f94c8f3375c203ea46f1f7402 (patch) | |
tree | 4a6d5b6ebf622cd8bc9c53c38ec4c3550ecce9e6 /drivers/media/i2c | |
parent | 2023a99811110aebba9eee4aa09ef7bd21a8a249 (diff) | |
download | linux-fc0b582c858ed73f94c8f3375c203ea46f1f7402.tar.xz |
media: atomisp: fix bad usage at error handling logic
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>
Diffstat (limited to 'drivers/media/i2c')
0 files changed, 0 insertions, 0 deletions