提交 62cc7b70 编写于 作者: J John Ferlan 提交者: Eric Blake

udev: check and handle error for virAsprintf() calls

上级 35562e01
......@@ -654,9 +654,8 @@ udevIfaceGetIfaceDef(struct udev *udev, char *name)
ifacedef->data.bridge.stp = stp;
/* Members of the bridge */
virAsprintf(&member_path, "%s/%s",
udev_device_get_syspath(dev), "brif");
if (!member_path) {
if (virAsprintf(&member_path, "%s/%s",
udev_device_get_syspath(dev), "brif") < 0) {
virReportOOMError();
goto cleanup;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册