提交 12b28f1b 编写于 作者: A Andrea Bolognani

pci: Initialize return location in virPCIGetPhysicalFunction()

Just an extra precaution in case the function returns early
due to an OOM error.
上级 72a7ff6b
......@@ -2487,6 +2487,8 @@ virPCIGetPhysicalFunction(const char *vf_sysfs_path,
{
char *device_link = NULL;
*pf = NULL;
if (virBuildPath(&device_link, vf_sysfs_path, "physfn") == -1) {
virReportOOMError();
return -1;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册