Skip to content

Commit 78b0c15

Browse files
Gabriel Barrantesphilmd
authored andcommitted
backends/cryptodev-vhost-user: Fix local_error leaks
Do not propagate error to the upper, directly output the error to avoid leaks. Fixes: 2fda101 ("virtio-crypto: Support asynchronous mode") Resolves: https://gitlab.com/qemu-project/qemu/-/issues/2714 Signed-off-by: Gabriel Barrantes <[email protected]> Reviewed-by: zhenwei pi <[email protected]> Message-Id: <DM8PR13MB50781054A4FDACE6F4FB6469B30F2@DM8PR13MB5078.namprd13.prod.outlook.com> Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
1 parent c48cc87 commit 78b0c15

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

backends/cryptodev-vhost-user.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -281,8 +281,7 @@ static int cryptodev_vhost_user_create_session(
281281
break;
282282

283283
default:
284-
error_setg(&local_error, "Unsupported opcode :%" PRIu32 "",
285-
sess_info->op_code);
284+
error_report("Unsupported opcode :%" PRIu32 "", sess_info->op_code);
286285
return -VIRTIO_CRYPTO_NOTSUPP;
287286
}
288287

0 commit comments

Comments
 (0)