[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Stable-7.2.16 25/31] backends/cryptodev-vhost-user: Fix local_error lea
From: |
Michael Tokarev |
Subject: |
[Stable-7.2.16 25/31] backends/cryptodev-vhost-user: Fix local_error leaks |
Date: |
Tue, 28 Jan 2025 00:41:17 +0300 |
Do not propagate error to the upper, directly output the error
to avoid leaks.
Fixes: 2fda101de07 ("virtio-crypto: Support asynchronous mode")
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/2714
Signed-off-by: Gabriel Barrantes <gabriel.barrantes.dev@outlook.com>
Reviewed-by: zhenwei pi <pizhenwei@bytedance.com>
Message-Id:
<DM8PR13MB50781054A4FDACE6F4FB6469B30F2@DM8PR13MB5078.namprd13.prod.outlook.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
(cherry picked from commit 78b0c15a563ac4be5afb0375602ca0a3adc6c442)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
diff --git a/backends/cryptodev-vhost-user.c b/backends/cryptodev-vhost-user.c
index ab3028e045..518f18b838 100644
--- a/backends/cryptodev-vhost-user.c
+++ b/backends/cryptodev-vhost-user.c
@@ -283,8 +283,7 @@ static int cryptodev_vhost_user_create_session(
break;
default:
- error_setg(&local_error, "Unsupported opcode :%" PRIu32 "",
- sess_info->op_code);
+ error_report("Unsupported opcode :%" PRIu32 "", sess_info->op_code);
return -VIRTIO_CRYPTO_NOTSUPP;
}
--
2.39.5
- [Stable-7.2.16 13/31] 9pfs: fix 'Tgetattr' after unlink, (continued)
- [Stable-7.2.16 13/31] 9pfs: fix 'Tgetattr' after unlink, Michael Tokarev, 2025/01/28
- [Stable-7.2.16 16/31] hw/openrisc/openrisc_sim: keep serial@90000000 as default, Michael Tokarev, 2025/01/28
- [Stable-7.2.16 17/31] tcg/riscv: Fix StoreStore barrier generation, Michael Tokarev, 2025/01/28
- [Stable-7.2.16 18/31] fuzz: specify audiodev for usb-audio, Michael Tokarev, 2025/01/28
- [Stable-7.2.16 19/31] x86/loader: only patch linux kernels, Michael Tokarev, 2025/01/28
- [Stable-7.2.16 21/31] meson.build: Disallow libnfs v6 to fix the broken macOS build, Michael Tokarev, 2025/01/28
- [Stable-7.2.16 20/31] hw/intc/arm_gicv3_its: Zero initialize local DTEntry etc structs, Michael Tokarev, 2025/01/28
- [Stable-7.2.16 22/31] s390x/s390-virtio-ccw: don't crash on weird RAM sizes, Michael Tokarev, 2025/01/28
- [Stable-7.2.16 23/31] docs: Correct release of TCG trace-events removal, Michael Tokarev, 2025/01/28
- [Stable-7.2.16 24/31] target/i386/cpu: Fix notes for CPU models, Michael Tokarev, 2025/01/28
- [Stable-7.2.16 25/31] backends/cryptodev-vhost-user: Fix local_error leaks,
Michael Tokarev <=
- [Stable-7.2.16 26/31] hw/usb/hcd-xhci-pci: Use modulo to select MSI vector as per spec, Michael Tokarev, 2025/01/28
- [Stable-7.2.16 27/31] pci: ensure valid link status bits for downstream ports, Michael Tokarev, 2025/01/28
- [Stable-7.2.16 28/31] pci/msix: Fix msix pba read vector poll end calculation, Michael Tokarev, 2025/01/28
- [Stable-7.2.16 31/31] tests: acpi: update expected blobs, Michael Tokarev, 2025/01/28
- [Stable-7.2.16 30/31] pci: acpi: Windows 'PCI Label Id' bug workaround, Michael Tokarev, 2025/01/28
- [Stable-7.2.16 29/31] tests: acpi: whitelist expected blobs, Michael Tokarev, 2025/01/28