projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b2978c3
)
remoteproc: qcom_q6v5_mss: fix a bug in q6v5_probe()
author
Alex Elder
<elder@linaro.org>
Fri, 3 Apr 2020 17:50:04 +0000
(12:50 -0500)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Sun, 10 May 2020 08:31:25 +0000
(10:31 +0200)
[ Upstream commit
13c060b50a341dd60303e5264d12108b5747f200
]
If looking up the DT "firmware-name" property fails in q6v6_probe(),
the function returns without freeing the remoteproc structure
that has been allocated. Fix this by jumping to the free_rproc
label, which takes care of this.
Signed-off-by: Alex Elder <elder@linaro.org>
Link:
https://lore.kernel.org/r/20200403175005.17130-3-elder@linaro.org
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/remoteproc/qcom_q6v5_mss.c
patch
|
blob
|
history
diff --git
a/drivers/remoteproc/qcom_q6v5_mss.c
b/drivers/remoteproc/qcom_q6v5_mss.c
index
783d001
..
6ba065d
100644
(file)
--- a/
drivers/remoteproc/qcom_q6v5_mss.c
+++ b/
drivers/remoteproc/qcom_q6v5_mss.c
@@
-1440,7
+1440,7
@@
static int q6v5_probe(struct platform_device *pdev)
ret = of_property_read_string_index(pdev->dev.of_node, "firmware-name",
1, &qproc->hexagon_mdt_image);
if (ret < 0 && ret != -EINVAL)
-
return ret
;
+
goto free_rproc
;
platform_set_drvdata(pdev, qproc);