projects
/
sdk
/
emulator
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e2ec3f9
)
nbd: unlock mutex in nbd_co_send_request() error path
author
Stefan Hajnoczi
<stefanha@redhat.com>
Mon, 15 Apr 2013 14:14:46 +0000
(16:14 +0200)
committer
Paolo Bonzini
<pbonzini@redhat.com>
Mon, 15 Apr 2013 14:29:46 +0000
(16:29 +0200)
Cc: qemu-stable@nongnu.org
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
block/nbd.c
patch
|
blob
|
history
diff --git
a/block/nbd.c
b/block/nbd.c
index
eff683c
..
662df16
100644
(file)
--- 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) {
- r
eturn
-EIO;
+ r
c =
-EIO;
}
}
qemu_aio_set_fd_handler(s->sock, nbd_reply_ready, NULL,