[dm-devel] [PATCH 06/14] libmultipath: fix return code of sgio_get_vpd()
Martin Wilck
mwilck at suse.com
Fri Jan 12 22:07:35 UTC 2018
This function must return the length of data received in success
case.
Signed-off-by: Martin Wilck <mwilck at suse.com>
---
libmultipath/discovery.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libmultipath/discovery.c b/libmultipath/discovery.c
index 3ae934261b65..da7bf5652a53 100644
--- a/libmultipath/discovery.c
+++ b/libmultipath/discovery.c
@@ -852,7 +852,7 @@ retry:
return len;
if (len > DEFAULT_SGIO_LEN)
goto retry;
- return 0;
+ return len;
}
return -1;
}
--
2.15.1
More information about the dm-devel
mailing list