qemu/backends
Markus Armbruster 1c89dfefc4 cryptodev: Fix error handling in cryptodev_lkcf_execute_task()
When cryptodev_lkcf_set_op_desc() fails, we report an error, but
continue anyway.  This is wrong.  We then pass a non-null @local_error
to various functions, which could easily fail error_setv()'s assertion
on failure.

Fail the function instead.

When qcrypto_akcipher_new() fails, we fail the function without
reporting the error.  This leaks the Error object.

Add the missing error reporting.  This also frees the Error object.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-ID: <20250312101131.1615777-1-armbru@redhat.com>
Reviewed-by: zhenwei pi <pizhenwei@bytedance.com>
2025-03-19 07:53:11 +01:00
..
tpm qdev: Rename PropertyInfo member @name to @type 2025-03-06 10:30:58 +01:00
confidential-guest-support.c system: Move 'exec/confidential-guest-support.h' to system/ 2024-12-20 17:44:56 +01:00
cryptodev-builtin.c include: Rename sysemu/ -> system/ 2024-12-20 17:44:56 +01:00
cryptodev-hmp-cmds.c qapi: Move include/qapi/qmp/ to include/qobject/ 2025-02-10 15:33:16 +01:00
cryptodev-lkcf.c cryptodev: Fix error handling in cryptodev_lkcf_execute_task() 2025-03-19 07:53:11 +01:00
cryptodev-vhost-user.c backends/cryptodev-vhost-user: Fix local_error leaks 2025-01-13 17:16:04 +01:00
cryptodev-vhost.c cryptodev/vhost: allocate CryptoDevBackendVhost using g_mem0() 2025-02-21 07:18:42 -05:00
cryptodev.c qom: Use object_get_container() 2025-01-09 18:16:24 +01:00
dbus-vmstate.c backends: Constify VMState 2023-12-30 07:38:06 +11:00
dbus-vmstate1.xml docs: move D-Bus VMState documentation to source XML 2021-12-21 10:50:21 +04:00
host_iommu_device.c include: Rename sysemu/ -> system/ 2024-12-20 17:44:56 +01:00
hostmem-epc.c memory: add RAM_PRIVATE 2025-01-29 11:43:04 -03:00
hostmem-file.c memory: add RAM_PRIVATE 2025-01-29 11:43:04 -03:00
hostmem-memfd.c hostmem-memfd: preserve for cpr 2025-01-29 11:43:04 -03:00
hostmem-ram.c memory: add RAM_PRIVATE 2025-01-29 11:43:04 -03:00
hostmem-shm.c hostmem-shm: preserve for cpr 2025-01-29 11:43:04 -03:00
hostmem.c include: Rename sysemu/ -> system/ 2024-12-20 17:44:56 +01:00
iommufd.c vfio: Remove reports of DMA mapping errors in backends 2025-02-11 14:15:19 +01:00
Kconfig backends: Initial support for SPDM socket support 2024-07-22 20:15:42 -04:00
meson.build backends: Initial support for SPDM socket support 2024-07-22 20:15:42 -04:00
rng-builtin.c include: Rename sysemu/ -> system/ 2024-12-20 17:44:56 +01:00
rng-egd.c include: Rename sysemu/ -> system/ 2024-12-20 17:44:56 +01:00
rng-random.c include: Rename sysemu/ -> system/ 2024-12-20 17:44:56 +01:00
rng.c include: Rename sysemu/ -> system/ 2024-12-20 17:44:56 +01:00
spdm-socket.c include: Rename sysemu/ -> system/ 2024-12-20 17:44:56 +01:00
trace-events vfio/iommufd: Implement VFIOIOMMUClass::query_dirty_bitmap support 2024-07-23 17:14:52 +02:00
trace.h trace: switch position of headers to what Meson requires 2020-08-21 06:18:24 -04:00
vhost-user.c include: Rename sysemu/ -> system/ 2024-12-20 17:44:56 +01:00