summary refs log tree commit diff stats
path: root/hw/core/machine.c
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2025-02-06 15:12:11 +0000
committerPeter Maydell <peter.maydell@linaro.org>2025-02-24 15:03:42 +0000
commitdfd0de718662a58ef2f2ef051939ed4b1a4d5ea7 (patch)
tree9a4c84515af6edeafa7bd1c7b57ef97a63004976 /hw/core/machine.c
parent3c25f487bc0672bf13473f4a7235c3ef592c954c (diff)
downloadfocaccia-qemu-dfd0de718662a58ef2f2ef051939ed4b1a4d5ea7.tar.gz
focaccia-qemu-dfd0de718662a58ef2f2ef051939ed4b1a4d5ea7.zip
hw/mips/boston: Check for error return from boston_fdt_filter()
The function boston_fdt_filter() can return NULL on errors (in which
case it will print an error message).  When we call this from the
non-FIT-image codepath, we aren't checking the return value, so we
will plough on with a NULL pointer, and segfault in fdt_totalsize().
Check for errors here.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-id: 20250206151214.2947842-4-peter.maydell@linaro.org
Diffstat (limited to 'hw/core/machine.c')
0 files changed, 0 insertions, 0 deletions