mirror of
https://github.com/torvalds/linux.git
synced 2026-11-28 17:32:32 +00:00
remoteproc: imx_rproc: add missing of_node_put
After of_parse_phandle, we need of_node_put to decrease the refcount of the device_node. Reported-by: Mathieu Poirier <[email protected]> Signed-off-by: Peng Fan <[email protected]> Reviewed-by: Mathieu Poirier <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Bjorn Andersson <[email protected]>
This commit is contained in:
committed by
Bjorn Andersson
parent
889cb0d43d
commit
6e962bfe56
@@ -459,6 +459,8 @@ static int imx_rproc_addr_init(struct imx_rproc *priv,
|
||||
return err;
|
||||
}
|
||||
|
||||
of_node_put(node);
|
||||
|
||||
if (b >= IMX7D_RPROC_MEM_MAX)
|
||||
break;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user