Commit 5eec92eb authored by Markus Elfring's avatar Markus Elfring Committed by Greg Kroah-Hartman
Browse files

remoteproc: k3: Call of_node_put(rmem_np) only once in three functions



[ Upstream commit a36d9f96 ]

An of_node_put(rmem_np) call was immediately used after a pointer check
for a of_reserved_mem_lookup() call in three function implementations.
Thus call such a function only once instead directly before the checks.

This issue was transformed by using the Coccinelle software.

Signed-off-by: default avatarMarkus Elfring <elfring@users.sourceforge.net>
Link: https://lore.kernel.org/r/c46b06f9-72b1-420b-9dce-a392b982140e@web.de


Signed-off-by: default avatarMathieu Poirier <mathieu.poirier@linaro.org>
Stable-dep-of: 70117751 ("remoteproc: k3-r5: Refactor sequential core power up/down operations")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 5b6eb04c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment