diff options
-rw-r--r-- | sys/boot/fdt/fdt_loader_cmd.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/boot/fdt/fdt_loader_cmd.c b/sys/boot/fdt/fdt_loader_cmd.c index b053db0..6e713b6 100644 --- a/sys/boot/fdt/fdt_loader_cmd.c +++ b/sys/boot/fdt/fdt_loader_cmd.c @@ -317,6 +317,8 @@ fixup_cpubusfreqs(unsigned long cpufreq, unsigned long busfreq) /* We want to modify every subnode of /cpus */ o = fdt_path_offset(fdtp, "/cpus"); + if (o < 0) + return; /* maxo should contain offset of node next to /cpus */ depth = 0; |