do not pass NULL pointer to libfdt
Re-send because of line-wraps. Without this patch, u-boot just hangs if the fdt pointer is not initialized. The diagnostic subsystems are not yet initialized, so all you get is a blind hang. Signed-off-by: Stanislav.Pinchuk@kaspersky.com
This commit is contained in:
parent
43db07507a
commit
a00e0f7ae5
1 changed files with 1 additions and 1 deletions
|
@ -1006,7 +1006,7 @@ static inline u64 dev_translate_dma_address(const struct udevice *dev,
|
|||
|
||||
static inline int dev_read_alias_highest_id(const char *stem)
|
||||
{
|
||||
if (!CONFIG_IS_ENABLED(OF_LIBFDT))
|
||||
if (!CONFIG_IS_ENABLED(OF_LIBFDT) || !gd->fdt_blob)
|
||||
return -1;
|
||||
return fdtdec_get_alias_highest_id(gd->fdt_blob, stem);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue