Skip to contentSkip to conversation

iscsi: Remember to set ret for iscsi_open in error case

PATCH Applied Fam Zheng 2 participants 4 messages Apr 10, 2014 – Apr 11, 2014 Block layer

lore
Share & tools
lore

Fam Zheng

author
#0 lore raw

PATCH 1/1 iscsi: Remember to set ret for iscsi_open in error case

---
 block/iscsi.c | 1 +
 1 file changed, 1 insertion(+)
block/iscsi.c +1 -0
index 64a509f..f425573 100644
@@ -1233,6 +1233,7 @@ static int iscsi_open(BlockDriverState *bs, QDict *options, int flags,
     iscsi_readcapacity_sync(iscsilun, &local_err);
     if (local_err != NULL) {
         error_propagate(errp, local_err);
+        ret = -EINVAL;
         goto out;
     }
     bs->total_sectors = sector_lun2qemu(iscsilun->num_blocks, iscsilun);
Signature · 1 line
1.9.1
author
#2 lore raw
Quoted 5 lines · Kevin Wolf

Am 10.04.2014 um 03:33 hat Fam Zheng geschrieben:

Quoted 1 line

Thanks, applied to the block branch.

Is this going into 2.0?

Thanks,
Fam

#3 lore raw

Am 11.04.2014 um 07:29 hat Fam Zheng geschrieben:

Quoted 8 lines · Kevin Wolf
Quoted 5 lines

Am 10.04.2014 um 03:33 hat Fam Zheng geschrieben:

Quoted 1 line

Thanks, applied to the block branch.

Is this going into 2.0?

Looks like we're going to have an -rc3, so yes.

Kevin