[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-stable] [PATCH 1/3] nbd: unlock mutex in nbd_co_send_request() err
From: |
Paolo Bonzini |
Subject: |
[Qemu-stable] [PATCH 1/3] nbd: unlock mutex in nbd_co_send_request() error path |
Date: |
Fri, 19 Apr 2013 16:30:28 +0200 |
From: Stefan Hajnoczi <address@hidden>
Cc: address@hidden
Signed-off-by: Stefan Hajnoczi <address@hidden>
Signed-off-by: Paolo Bonzini <address@hidden>
---
block/nbd.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/block/nbd.c b/block/nbd.c
index eff683c..662df16 100644
--- a/block/nbd.c
+++ b/block/nbd.c
@@ -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,
offset, request->len);
if (ret != request->len) {
- return -EIO;
+ rc = -EIO;
}
}
qemu_aio_set_fd_handler(s->sock, nbd_reply_ready, NULL,
--
1.8.1.4
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-stable] [PATCH 1/3] nbd: unlock mutex in nbd_co_send_request() error path,
Paolo Bonzini <=