This function must return the length of data received in success case. Signed-off-by: Martin Wilck <mwilck@xxxxxxxx> --- 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 -- dm-devel mailing list dm-devel@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/dm-devel