nbd: unlock mutex in nbd_co_send_request() error path
Cc: qemu-stable@nongnu.org Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
e2ec3f9768
commit
6760c47aa4
@ -339,7 +339,7 @@ static int nbd_co_send_request(BDRVNBDState *s, struct nbd_request *request,
|
|||||||
ret = qemu_co_sendv(s->sock, qiov->iov, qiov->niov,
|
ret = qemu_co_sendv(s->sock, qiov->iov, qiov->niov,
|
||||||
offset, request->len);
|
offset, request->len);
|
||||||
if (ret != request->len) {
|
if (ret != request->len) {
|
||||||
return -EIO;
|
rc = -EIO;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
qemu_aio_set_fd_handler(s->sock, nbd_reply_ready, NULL,
|
qemu_aio_set_fd_handler(s->sock, nbd_reply_ready, NULL,
|
||||||
|
Loading…
Reference in New Issue
Block a user