diff mbox

[2/2] block/vxhs: set errp on iio_init() failure

Message ID 0ed31cb5524d0f2c82f09d2a2ed1b84d6c1eaeb4.1493933558.git.jcody@redhat.com (mailing list archive)
State New, archived
Headers show

Commit Message

Jeff Cody May 4, 2017, 9:35 p.m. UTC
Signed-off-by: Jeff Cody <jcody@redhat.com>
---
 block/vxhs.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox

Patch

diff --git a/block/vxhs.c b/block/vxhs.c
index 9ffe9d3..1f1e5db 100644
--- a/block/vxhs.c
+++ b/block/vxhs.c
@@ -301,6 +301,7 @@  static int vxhs_open(BlockDriverState *bs, QDict *options,
 
     ret = vxhs_init_and_ref();
     if (ret < 0) {
+        error_setg(&local_err, "libvxhs iio_init() failed");
         ret = -EINVAL;
         goto out;
     }