Message ID | 1418207679-32260-64-git-send-email-kwolf@redhat.com |
---|---|
State | New |
Headers | show |
diff --git a/block/raw-posix.c b/block/raw-posix.c index 2e6a919..e51293a 100644 --- a/block/raw-posix.c +++ b/block/raw-posix.c @@ -446,6 +446,7 @@ static int raw_open_common(BlockDriverState *bs, QDict *options, } if (fstat(s->fd, &st) < 0) { + ret = -errno; error_setg_errno(errp, errno, "Could not stat file"); goto fail; }