diff options
author | Jiaxun Yang <jiaxun.yang@flygoat.com> | 2024-06-03 15:45:53 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-06-16 13:51:02 +0200 |
commit | 63a48912792cdeadf53a4934eba66ccb1d3cb0fa (patch) | |
tree | 6e8e39078652bde89c3be7d16397b781b3baac0d /tools/lib/api/fs/tracing_path.c | |
parent | 750d0844591894b97aaa2b61b7ab1fb67d169798 (diff) |
LoongArch: Fix built-in DTB detection
commit b56f67a6c748bb009f313f91651c8020d2338d63 upstream.
fdt_check_header(__dtb_start) will always success because kernel
provides a dummy dtb, and by coincidence __dtb_start clashed with
entry of this dummy dtb. The consequence is fdt passed from firmware
will never be taken.
Fix by trying to utilise __dtb_start only when CONFIG_BUILTIN_DTB is
enabled.
Cc: stable@vger.kernel.org
Fixes: 7b937cc243e5 ("of: Create of_root if no dtb provided by firmware")
Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/lib/api/fs/tracing_path.c')
0 files changed, 0 insertions, 0 deletions