mirror of https://gitee.com/openkylin/libvirt.git
util: Avoid calling closedir(NULL)
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
This commit is contained in:
parent
50129dcc9c
commit
04e10925a1
|
@ -3119,7 +3119,7 @@ virNetDevRDMAFeature(const char *ifname,
|
|||
virReportSystemError(errno,
|
||||
_("Failed to opendir path '%s'"),
|
||||
SYSFS_INFINIBAND_DIR);
|
||||
goto cleanup;
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (virAsprintf(ð_devpath, SYSFS_NET_DIR "%s/device/resource", ifname) < 0)
|
||||
|
|
Loading…
Reference in New Issue