Commit 8f18d9e6 authored by Joe Hattori's avatar Joe Hattori Committed by Greg Kroah-Hartman
Browse files

mtd: hyperbus: hbmc-am654: fix an OF node reference leak



[ Upstream commit bf582190 ]

In am654_hbmc_platform_driver, .remove() and the error path of .probe()
do not decrement the refcount of an OF node obtained by
  of_get_next_child(). Fix this by adding of_node_put() calls.

Fixes: aca31ce9 ("mtd: hyperbus: hbmc-am654: Fix direct mapping setup flash access")
Signed-off-by: default avatarJoe Hattori <joe@pf.is.s.u-tokyo.ac.jp>
Signed-off-by: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 73bcd1bd
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment