Skip to content

Commit 7b374a2

Browse files
Dan Carpenterandersson
authored andcommitted
soc: qcom: rmtfs: Fix error code in probe()
Return an error code if of_property_count_u32_elems() fails. Don't return success. Fixes: e656cd0 ("soc: qcom: rmtfs: Optionally map RMTFS to more VMs") Signed-off-by: Dan Carpenter <[email protected]> Reviewed-by: Konrad Dybcio <[email protected]> Signed-off-by: Bjorn Andersson <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent b3d0dcc commit 7b374a2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/soc/qcom/rmtfs_mem.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,7 @@ static int qcom_rmtfs_mem_probe(struct platform_device *pdev)
233233
num_vmids = 0;
234234
} else if (num_vmids < 0) {
235235
dev_err(&pdev->dev, "failed to count qcom,vmid elements: %d\n", num_vmids);
236+
ret = num_vmids;
236237
goto remove_cdev;
237238
} else if (num_vmids > NUM_MAX_VMIDS) {
238239
dev_warn(&pdev->dev,

0 commit comments

Comments
 (0)