From: Shivang Upadhyay <[email protected]> Fixes coverity (CID 1642026)
Cc: Aditya Gupta <[email protected]> Cc: Harsh Prateek Bora <[email protected]> Link: https://lore.kernel.org/qemu-devel/CAFEAcA-SPmsnU1wzsWxBcFC=zm_ddhpeg1n4ix9q4bl1xon...@mail.gmail.com/ Reported-by: Peter Maydell <[email protected]> Suggested-by: Peter Maydell <[email protected]> Signed-off-by: Shivang Upadhyay <[email protected]> Reviewed-by: Harsh Prateek Bora <[email protected]> Signed-off-by: Harsh Prateek Bora <[email protected]> Link: https://lore.kernel.org/r/[email protected] Message-ID: <[email protected]> --- hw/ppc/spapr_fadump.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/ppc/spapr_fadump.c b/hw/ppc/spapr_fadump.c index fa3aeac94c..883a60cdcf 100644 --- a/hw/ppc/spapr_fadump.c +++ b/hw/ppc/spapr_fadump.c @@ -234,6 +234,7 @@ static bool do_preserve_region(FadumpSection *region) qemu_log_mask(LOG_GUEST_ERROR, "FADump: Failed allocating memory (size: %zu) for copying" " reserved memory regions\n", FADUMP_CHUNK_SIZE); + return false; } num_chunks = ceil((src_len * 1.0f) / FADUMP_CHUNK_SIZE); -- 2.43.5
