Message ID | 1269535420-31206-32-git-send-email-aneesh.kumar@linux.vnet.ibm.com |
---|---|
State | New |
Headers | show |
diff --git a/hw/virtio-9p.c b/hw/virtio-9p.c index 5ccaeac..1b791ca 100644 --- a/hw/virtio-9p.c +++ b/hw/virtio-9p.c @@ -1644,7 +1644,7 @@ static void v9fs_create_post_lstat(V9fsState *s, V9fsCreateState *vs, int err) { if ( err == 0 || errno != ENOENT) { - err = -EEXIST; + err = -errno; goto out; }