FIT: Fix error path
In case of error of_unflatten_dtb() returns an ERR_PTR. Make sure
that handle->root contains NULL in this case so that we do not call
of_delete_node on the error pointer in the exit path.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent db02aac commit 11bc2f40415299028576fb88da1caa8f1561ebe5
@Sascha Hauer Sascha Hauer authored on 17 Jan 2018
Showing 1 changed file
View
common/image-fit.c