mirror of
https://github.com/izzy2lost/xemu.git
synced 2026-07-06 00:20:22 -07:00
hw/ppc: Fix missing return on allocation failure
Fixes coverity (CID 1642026) Cc: Aditya Gupta <adityag@linux.ibm.com> Cc: Harsh Prateek Bora <harshpb@linux.ibm.com> Link: https://lore.kernel.org/qemu-devel/CAFEAcA-SPmsnU1wzsWxBcFC=ZM_DDhPEg1N4iX9Q4bL1xOnwBg@mail.gmail.com/ Reported-by: Peter Maydell <peter.maydell@linaro.org> Suggested-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Shivang Upadhyay <shivangu@linux.ibm.com> Reviewed-by: Harsh Prateek Bora <harshpb@linux.ibm.com> Signed-off-by: Harsh Prateek Bora <harshpb@linux.ibm.com> Link: https://lore.kernel.org/r/20251028080551.92722-2-shivangu@linux.ibm.com Message-ID: <20251028080551.92722-2-shivangu@linux.ibm.com>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user