aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorJiasheng Jiang <[email protected]>2022-11-07 09:44:03 +0800
committerBjorn Andersson <[email protected]>2022-11-07 17:15:20 -0600
commit6d7860f5750d73da2fa1a1f6c9405058a593fa32 (patch)
treec0f38a0e7ffc7cd0ed391638fa888deff39ad738 /tools/perf/scripts/python
parent759dcdf24903f61bc46064e0f7dd8a68ea1a6376 (diff)
soc: qcom: apr: Add check for idr_alloc and of_property_read_string_index
As idr_alloc() and of_property_read_string_index() can return negative numbers, it should be better to check the return value and deal with the exception. Therefore, it should be better to use goto statement to stop and return error. Fixes: 6adba21eb434 ("soc: qcom: Add APR bus driver") Signed-off-by: Jiasheng Jiang <[email protected]> Reviewed-by: Bjorn Andersson <[email protected]> Signed-off-by: Bjorn Andersson <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions