of_unflatten_dtb(): Check return value with IS_ERR
Of_unflatten_dtb returns a ERR_PTR value so checking it against NULL is
incorrect. Fix it in all of the places where this was happening.

Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 79a2cc9 commit da1f91422c2e3479066e22cc2795b7927dfe6714
@Andrey Smirnov Andrey Smirnov authored on 1 Sep 2016
Sascha Hauer committed on 5 Sep 2016
Showing 6 changed files
View
arch/arm/boards/highbank/init.c
View
arch/arm/cpu/dtb.c
View
arch/arm/lib/bootm.c
View
arch/mips/boot/dtb.c
View
arch/openrisc/lib/dtb.c
View
common/bootm.c