soc: qcom: smem: handle ENOMEM error during probe
Subsystems (2)
PATCH 1/1 soc: qcom: smem: handle ENOMEM error during probe
Fail the driver probe if the region can't be mapped
Signed-off-by Jorge Ramirez-Ortiz <[email protected]>
--- drivers/soc/qcom/smem.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/soc/qcom/smem.c +3 -1
@@ -1215,7 +1215,9 @@ static int qcom_smem_probe(struct platform_device *pdev) smem->item_count =qcom_smem_get_item_count (smem);break ;case SMEM_GLOBAL_HEAP_VERSION : -qcom_smem_map_global (smem, size); + ret =qcom_smem_map_global (smem, size); +if (ret <0 ) +return ret; smem->item_count =SMEM_ITEM_COUNT ;break ;default :
Signature · 1 line
2.43.0
Quoted 6 lines · Jorge Ramirez-Ortiz
Fail the driver probe if the region can't be mapped
Signed-off-by Jorge Ramirez-Ortiz <[email protected]>--- drivers/soc/qcom/smem.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
Fixes 20bb6c9de1b7 ("soc: qcom: smem: map only partitions used by local HOST")
Reviewed-by Dmitry Baryshkov <[email protected]>
Signature · 2 lines
With best wishes Dmitry
Quoted 3 lines · Jorge Ramirez-Ortiz
Fail the driver probe if the region can't be mapped
Applied, thanks!
[1/1] soc: qcom: smem: handle ENOMEM error during probe
commit: 0fe01a7955f4fef97e7cc6d14bfc5931c660402b
Best regards,
Signature · 1 line
Bjorn Andersson <[email protected]>