mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-10 20:48:12 +00:00
of/fdt: Fix the len check in early_init_dt_check_for_elfcorehdr()
[ Upstream commitbec5f6092b] The len value is in bytes, while `dt_root_addr_cells + dt_root_size_cells` is in cells (4 bytes per cell). Comparing them directly is incorrect. Use a helper function to simplify the code and address this issue. Fixes:f7e7ce93aa("of: fdt: Add generic support for handling elf core headers property") Fixes:e62aaeac42("arm64: kdump: provide /proc/vmcore file") Signed-off-by: Yuntao Wang <yuntao.wang@linux.dev> Link: https://patch.msgid.link/20251115134753.179931-3-yuntao.wang@linux.dev Signed-off-by: Rob Herring (Arm) <robh@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
7045d5970e
commit
f326efdcab
1 changed files with 2 additions and 8 deletions
Loading…
Add table
Add a link
Reference in a new issue