tests: vhost-user-test: release mutex on protocol violation
commit9260993e27cdbbd2e829d405cc63b1faefec6088
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 27 Apr 2023 12:54:02 +0000 (27 14:54 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 28 Apr 2023 13:56:41 +0000 (28 15:56 +0200)
treee723f8c31f591ba1ac4a1595998c0ed9ee9f14bc
parentc5c0fdbe39aa2f65fecd93ab3082b1b8a7e2a318
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>
tests/qtest/vhost-user-test.c