Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit b855f16b authored by Tang Yuantian's avatar Tang Yuantian Committed by Grant Likely
Browse files

of/base: release the node correctly in of_parse_phandle_with_args()



Call of_node_put() only when the out_args is NULL on success,
or the node's reference count will not be correct because the caller
will call of_node_put() again.

Signed-off-by: default avatarTang Yuantian <Yuantian.Tang@freescale.com>
[grant.likely: tightened up the patch]
Signed-off-by: default avatarGrant Likely <grant.likely@linaro.org>
parent 48d045db
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment