Skip to contentSkip to conversation

libmultipath: fix return code of sysfs_get_timeout

PATCH New Martin Wilck 1 participant 1 message Nov 20, 2017 Device mapper

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libmultipath: fix return code of sysfs_get_timeout

This function should return 1 on success, as the other sysfs_get_XXX functions. The callers actually expect this - therefore timeout values from sysfs are never used.

---
 libmultipath/discovery.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
libmultipath/discovery.c +1 -1
index cadf4617894f..3ae934261b65 100644
@@ -276,7 +276,7 @@ sysfs_get_timeout(struct path *pp, unsigned int *timeout)
 	}
 	*timeout = t;
 
-	return 0;
+	return 1;
 }
 
 int
Signature · 1 line
2.15.0