diff options
author | Cristian Marussi <[email protected]> | 2022-05-03 13:10:47 +0100 |
---|---|---|
committer | Sudeep Holla <[email protected]> | 2022-05-03 14:23:02 +0100 |
commit | c7f8852d4216f7dc061f0bc02dda5af396048861 (patch) | |
tree | 823400565d092469c786d7db59e2028f3d5255ae /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 5e114ad984c220fcc5c08b6bf3b458ce95f46f43 (diff) |
firmware: arm_scmi: Fix late checks on pointer dereference
A few dereferences could happen before the iterator pointer argument was
checked for NULL, causing the following smatch warnings:
drivers/firmware/arm_scmi/driver.c:1214 scmi_iterator_run() warn: variable
dereferenced before check 'i' (see line 1210)
Fix by moving the checks early and dropping some unneeded local references.
No functional change.
Link: https://lore.kernel.org/r/[email protected]
Reported-by: kernel test robot <[email protected]>
Reported-by: Dan Carpenter <[email protected]>
Signed-off-by: Cristian Marussi <[email protected]>
Signed-off-by: Sudeep Holla <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions