]> git.proxmox.com Git - mirror_qemu.git/commit
tests: vhost-user-test: release mutex on protocol violation
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 27 Apr 2023 12:54:23 +0000 (14:54 +0200)
committerThomas Huth <thuth@redhat.com>
Fri, 28 Apr 2023 06:05:37 +0000 (08:05 +0200)
commit3ee7f21ed292966f5cd3eb71aa06f8ffc0e5ae41
treea6c8d6877336f0e4e7b427f79161fb23622072c0
parente017462db554bedd82fa3bb86cd72d9e38684dd4
tests: vhost-user-test: release mutex on protocol violation

chr_read() is printing an error message and returning with s->data_mutex taken.
This can potentially cause a hang.  Reported by Coverity.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Message-Id: <20230427125423.103536-1-pbonzini@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
tests/qtest/vhost-user-test.c