summaryrefslogtreecommitdiff
path: root/drivers/hwmon
diff options
context:
space:
mode:
authorJiasheng Jiang <jiasheng@iscas.ac.cn>2022-11-07 09:44:03 +0800
committerBjorn Andersson <andersson@kernel.org>2022-11-07 17:15:20 -0600
commit6d7860f5750d73da2fa1a1f6c9405058a593fa32 (patch)
treec0f38a0e7ffc7cd0ed391638fa888deff39ad738 /drivers/hwmon
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 <jiasheng@iscas.ac.cn> Reviewed-by: Bjorn Andersson <andersson@kernel.org> Signed-off-by: Bjorn Andersson <andersson@kernel.org> Link: https://lore.kernel.org/r/20221107014403.3606-1-jiasheng@iscas.ac.cn
Diffstat (limited to 'drivers/hwmon')
0 files changed, 0 insertions, 0 deletions