On Thu, 09 Jan 2025 21:27:04 +0800, Zijun Hu wrote: > From: Zijun Hu <quic_zijuhu@xxxxxxxxxxx> > > early_init_fdt_scan_reserved_mem() invoks fdt_get_mem_rsv(), and it will > use uninitialized variables @base and @size once the callee suffers error. > > Fix by checking fdt_get_mem_rsv() error as other callers do. > > Signed-off-by: Zijun Hu <quic_zijuhu@xxxxxxxxxxx> > --- > drivers/of/fdt.c | 7 ++++++- > 1 file changed, 6 insertions(+), 1 deletion(-) > Applied, thanks!