Skip to content

Commit 278d744

Browse files
Tobias Jordanandersson
authored andcommitted
remoteproc: qcom: Fix potential device node leaks
Add missing of_node_put()s at two places for device nodes returned by of_parse_phandle(). Fixes: 051fb70 ("remoteproc: qcom: Driver for the self-authenticating Hexagon v5") Signed-off-by: Tobias Jordan <Tobias.Jordan@elektrobit.com> Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
1 parent fcd5803 commit 278d744

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/remoteproc/qcom_q6v5_pil.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1083,6 +1083,7 @@ static int q6v5_alloc_memory_region(struct q6v5 *qproc)
10831083
dev_err(qproc->dev, "unable to resolve mba region\n");
10841084
return ret;
10851085
}
1086+
of_node_put(node);
10861087

10871088
qproc->mba_phys = r.start;
10881089
qproc->mba_size = resource_size(&r);
@@ -1100,6 +1101,7 @@ static int q6v5_alloc_memory_region(struct q6v5 *qproc)
11001101
dev_err(qproc->dev, "unable to resolve mpss region\n");
11011102
return ret;
11021103
}
1104+
of_node_put(node);
11031105

11041106
qproc->mpss_phys = qproc->mpss_reloc = r.start;
11051107
qproc->mpss_size = resource_size(&r);

0 commit comments

Comments
 (0)