summary refs log tree commit diff stats
path: root/hw/misc/grlib_ahb_apb_pnp.c
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2022-07-19 20:17:37 +0100
committerPhilippe Mathieu-Daudé <f4bug@amsat.org>2022-08-08 23:22:36 +0200
commit8809baf4e40633ba01b47cd2257bbbbba14fc861 (patch)
treefe49f92342096b585ce9e64e0eafda5546aa1b54 /hw/misc/grlib_ahb_apb_pnp.c
parent8a1337e60400ef54432e063164faf5043a55555d (diff)
downloadfocaccia-qemu-8809baf4e40633ba01b47cd2257bbbbba14fc861.tar.gz
focaccia-qemu-8809baf4e40633ba01b47cd2257bbbbba14fc861.zip
target/mips: Handle lock_user() failure in UHI_plog semihosting call
Coverity notes that we forgot to check the error return from
lock_user() in one place in the handling of the UHI_plog semihosting
call.  Add the missing error handling.

report_fault() is rather brutal in that it will call abort(), but
this is the same error-handling used in the rest of this file.

Resolves: Coverity CID 1490684
Fixes: ea4210600db3c5 ("target/mips: Avoid qemu_semihosting_log_out for UHI_plog")
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20220719191737.384744-1-peter.maydell@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Diffstat (limited to 'hw/misc/grlib_ahb_apb_pnp.c')
0 files changed, 0 insertions, 0 deletions