aboutsummaryrefslogtreecommitdiff
path: root/blockdev-nbd.c
diff options
context:
space:
mode:
authorAnthony Liguori <aliguori@us.ibm.com>2012-11-28 13:19:30 -0600
committerAnthony Liguori <aliguori@us.ibm.com>2012-11-28 13:19:30 -0600
commit264ac41ca171c53eead7e037bc78babb3f0f1bc3 (patch)
tree13c45eaec41265317b1ad159aa2394c4b21c8f77 /blockdev-nbd.c
parente6451fd372bbac8123414a88ed6d3296b66d4b5d (diff)
parentf3313d23a061648c99609a4c127ed13c820f831d (diff)
downloadqemu-264ac41ca171c53eead7e037bc78babb3f0f1bc3.zip
qemu-264ac41ca171c53eead7e037bc78babb3f0f1bc3.tar.gz
qemu-264ac41ca171c53eead7e037bc78babb3f0f1bc3.tar.bz2
Merge remote-tracking branch 'bonzini/nbd-next' into staging
* bonzini/nbd-next: nbd-server-add: Fix the default for 'writable' nbd: fix use of two uninitialized bytes when connecting to a named export Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'blockdev-nbd.c')
-rw-r--r--blockdev-nbd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/blockdev-nbd.c b/blockdev-nbd.c
index d1721a3..6b26bbf 100644
--- a/blockdev-nbd.c
+++ b/blockdev-nbd.c
@@ -99,7 +99,7 @@ void qmp_nbd_server_add(const char *device, bool has_writable, bool writable,
}
if (!has_writable) {
- writable = true;
+ writable = false;
}
if (bdrv_is_read_only(bs)) {
writable = false;