diff options
author | Max Reitz | 2013-10-11 14:30:16 +0200 |
---|---|---|
committer | Stefan Hajnoczi | 2013-10-17 14:55:46 +0200 |
commit | 45d57f6e718e44e55780bcf1d09fa140dce7ec08 (patch) | |
tree | c20e324e778d51aa050280c0960711deb9fdbaf2 /hw/cris | |
parent | blockdev: fix cdrom read_only flag (diff) | |
download | qemu-45d57f6e718e44e55780bcf1d09fa140dce7ec08.tar.gz qemu-45d57f6e718e44e55780bcf1d09fa140dce7ec08.tar.xz qemu-45d57f6e718e44e55780bcf1d09fa140dce7ec08.zip |
block/raw-win32: Always use -errno in hdev_open
On one occasion, hdev_open() returned -1 in case of an unknown error
instead of a proper -errno value. Adjust this to match the behavior of
raw_open() (in raw-win32), which is to return -EINVAL in this case.
Also, change the call to error_setg*() to match the one in raw_open() as
well.
Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'hw/cris')
0 files changed, 0 insertions, 0 deletions