multipath: close sysfs file after setting value
Benjamin Marzinski
maintainerPATCH 1/1 multipath: close sysfs file after setting value
We need to close the sysfs file after setting its value.
Signed-off-by Benjamin Marzinski <[email protected]>
--- libmultipath/sysfs.c | 1 + 1 file changed, 1 insertion(+)
libmultipath/sysfs.c +1 -0
@@ -407,6 +407,7 @@ sysfs_attr_set_value(const char *devpath path_full, ret); ret =-1 ; } +close (fd); out:return ret; }