diff options
| author | Yizhuo <[email protected]> | 2021-06-25 07:38:56 +0200 |
|---|---|---|
| committer | Mauro Carvalho Chehab <[email protected]> | 2021-07-22 14:01:55 +0200 |
| commit | c275e5d349b0d2b1143607d28b9c7c14a8a0a9b4 (patch) | |
| tree | a37ddbb4e5af0c5d4c2e2ae8d507e5893b9fc418 /tools/perf/scripts/python/export-to-sqlite.py | |
| parent | 9d971b81359837ed05f466afa7c8df5d5f94786f (diff) | |
media: atomisp: fix the uninitialized use and rename "retvalue"
Inside function mt9m114_detect(), variable "retvalue" could
be uninitialized if mt9m114_read_reg() returns error, however, it
is used in the later if statement, which is potentially unsafe.
The local variable "retvalue" is renamed to "model" to avoid
confusion.
Link: https://lore.kernel.org/linux-media/[email protected]
Fixes: ad85094 (media / atomisp: fix the uninitialized use of model ID)
Signed-off-by: Yizhuo <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions