Skip to content

Commit f305af1

Browse files
committed
ODROID-COMMON: fix invalid path when root path is NULL
Signed-off-by: Dongjin Kim <[email protected]> Change-Id: I8b372915d053f70eae93b6c44ae873fdc7bc86bb
1 parent 0d834c4 commit f305af1

File tree

1 file changed

+1
-1
lines changed
  • board/hardkernel/odroid-common

1 file changed

+1
-1
lines changed

board/hardkernel/odroid-common/board.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ int dtoverlay_apply(void *fdt, const char *dtoverlay, struct blk_desc *dev_desc,
229229
ulong fdt_dtbo = env_get_ulong("loadaddr", 16, 0);
230230

231231
for (i = 0; i < ARRAY_SIZE(paths); i++) {
232-
snprintf(buf, sizeof(buf), "%s%s%s.dtbo", root, paths[i], dtoverlay);
232+
snprintf(buf, sizeof(buf), "%s%s%s.dtbo", root ? root : "", paths[i], dtoverlay);
233233

234234
if (dev_desc)
235235
ret = load_from_mmc(fdt_dtbo, dev_desc->devnum, 1, buf);

0 commit comments

Comments
 (0)