提交 04e10925 编写于 作者: J Jiri Denemark

util: Avoid calling closedir(NULL)

Signed-off-by: NJiri Denemark <jdenemar@redhat.com>
上级 50129dcc
......@@ -3119,7 +3119,7 @@ virNetDevRDMAFeature(const char *ifname,
virReportSystemError(errno,
_("Failed to opendir path '%s'"),
SYSFS_INFINIBAND_DIR);
goto cleanup;
return -1;
}
if (virAsprintf(&eth_devpath, SYSFS_NET_DIR "%s/device/resource", ifname) < 0)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册