mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
Don't hang if there is no /cpus node in the device tree.
This commit is contained in:
parent
87ba494b0e
commit
9b1cb34ced
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue