of: platform: fix OF node refcount leak
We need to call of_node_put() for device nodes obtained with of_find_node_by_path(). Fixes: 3aa0582f ("of: platform: populate /firmware/ node from of_platform_default_populate_init()") Reported-by: NLoys Ollivier <lollivier@baylibre.com> Cc: Frank Rowand <frowand.list@gmail.com> Signed-off-by: NSudeep Holla <sudeep.holla@arm.com> Acked-by: NRob Herring <robh@kernel.org> Signed-off-by: NAndy Gross <andy.gross@linaro.org> Signed-off-by: NArnd Bergmann <arnd@arndb.de>
Showing
想要评论请 注册 或 登录