* [PATCH] soc: qcom: ramp_controller: Fix an error handling path in qcom_ramp_controller_probe()
@ 2023-04-16 22:29 Christophe JAILLET
2023-04-17 10:33 ` AngeloGioacchino Del Regno
2023-05-25 4:53 ` Bjorn Andersson
0 siblings, 2 replies; 3+ messages in thread
From: Christophe JAILLET @ 2023-04-16 22:29 UTC (permalink / raw)
To: Andy Gross, Bjorn Andersson, Konrad Dybcio,
AngeloGioacchino Del Regno, Dmitry Baryshkov
Cc: linux-kernel, kernel-janitors, Christophe JAILLET, linux-arm-msm
'qrc' is known to be non-NULL at this point.
Checking for 'qrc->desc' was expected instead, so use it.
Fixes: a723c95fa137 ("soc: qcom: Add Qualcomm Ramp Controller driver")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
---
drivers/soc/qcom/ramp_controller.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/soc/qcom/ramp_controller.c b/drivers/soc/qcom/ramp_controller.c
index dc74d2a19de2..5e3ba0be0903 100644
--- a/drivers/soc/qcom/ramp_controller.c
+++ b/drivers/soc/qcom/ramp_controller.c
@@ -296,7 +296,7 @@ static int qcom_ramp_controller_probe(struct platform_device *pdev)
return -ENOMEM;
qrc->desc = device_get_match_data(&pdev->dev);
- if (!qrc)
+ if (!qrc->desc)
return -EINVAL;
qrc->regmap = devm_regmap_init_mmio(&pdev->dev, base, &qrc_regmap_config);
--
2.34.1
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH] soc: qcom: ramp_controller: Fix an error handling path in qcom_ramp_controller_probe()
2023-04-16 22:29 [PATCH] soc: qcom: ramp_controller: Fix an error handling path in qcom_ramp_controller_probe() Christophe JAILLET
@ 2023-04-17 10:33 ` AngeloGioacchino Del Regno
2023-05-25 4:53 ` Bjorn Andersson
1 sibling, 0 replies; 3+ messages in thread
From: AngeloGioacchino Del Regno @ 2023-04-17 10:33 UTC (permalink / raw)
To: Christophe JAILLET, Andy Gross, Bjorn Andersson, Konrad Dybcio,
Dmitry Baryshkov
Cc: linux-kernel, kernel-janitors, linux-arm-msm
Il 17/04/23 00:29, Christophe JAILLET ha scritto:
> 'qrc' is known to be non-NULL at this point.
> Checking for 'qrc->desc' was expected instead, so use it.
>
> Fixes: a723c95fa137 ("soc: qcom: Add Qualcomm Ramp Controller driver")
> Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH] soc: qcom: ramp_controller: Fix an error handling path in qcom_ramp_controller_probe()
2023-04-16 22:29 [PATCH] soc: qcom: ramp_controller: Fix an error handling path in qcom_ramp_controller_probe() Christophe JAILLET
2023-04-17 10:33 ` AngeloGioacchino Del Regno
@ 2023-05-25 4:53 ` Bjorn Andersson
1 sibling, 0 replies; 3+ messages in thread
From: Bjorn Andersson @ 2023-05-25 4:53 UTC (permalink / raw)
To: Konrad Dybcio, Andy Gross, Christophe JAILLET,
AngeloGioacchino Del Regno, Dmitry Baryshkov
Cc: linux-kernel, kernel-janitors, linux-arm-msm
On Mon, 17 Apr 2023 00:29:35 +0200, Christophe JAILLET wrote:
> 'qrc' is known to be non-NULL at this point.
> Checking for 'qrc->desc' was expected instead, so use it.
>
>
Applied, thanks!
[1/1] soc: qcom: ramp_controller: Fix an error handling path in qcom_ramp_controller_probe()
commit: b3d0dcc8e359cf5d57fb6308bc9750af5da574b3
Best regards,
--
Bjorn Andersson <andersson@kernel.org>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-05-25 4:51 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-16 22:29 [PATCH] soc: qcom: ramp_controller: Fix an error handling path in qcom_ramp_controller_probe() Christophe JAILLET
2023-04-17 10:33 ` AngeloGioacchino Del Regno
2023-05-25 4:53 ` Bjorn Andersson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®