Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
libvirt
提交
9a471495
L
libvirt
项目概览
openeuler
/
libvirt
通知
3
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
L
libvirt
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
9a471495
编写于
4月 01, 2009
作者:
D
Daniel P. Berrange
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix misc memory handling bugs
上级
83a618f8
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
20 addition
and
5 deletion
+20
-5
ChangeLog
ChangeLog
+9
-0
src/node_device.c
src/node_device.c
+8
-3
src/qemu_conf.c
src/qemu_conf.c
+1
-1
src/storage_conf.c
src/storage_conf.c
+2
-1
未找到文件。
ChangeLog
浏览文件 @
9a471495
Wed Apr 1 11:18:22 BST 2009 Daniel P. Berrange <berrange@redhat.com>
Misc memory handling fixes
* src/node_device.c: Don't strdup() a NULL parent device name
* src/qemu_conf.c: Don't try to access() a NULL alternative
binary name
* src/storage_conf.c: Don't free mode string while its still
in use
Wed Apr 1 11:16:22 BST 2009 Daniel P. Berrange <berrange@redhat.com>
* src/xm_internal.c: Add support for vifname= parameter in
...
...
src/node_device.c
浏览文件 @
9a471495
...
...
@@ -175,9 +175,14 @@ static char *nodeDeviceGetParent(virNodeDevicePtr dev)
goto
cleanup
;
}
ret
=
strdup
(
obj
->
def
->
parent
);
if
(
!
ret
)
virReportOOMError
(
dev
->
conn
);
if
(
obj
->
def
->
parent
)
{
ret
=
strdup
(
obj
->
def
->
parent
);
if
(
!
ret
)
virReportOOMError
(
dev
->
conn
);
}
else
{
virNodeDeviceReportError
(
dev
->
conn
,
VIR_ERR_INTERNAL_ERROR
,
"%s"
,
_
(
"no parent for this device"
));
}
cleanup:
if
(
obj
)
...
...
src/qemu_conf.c
浏览文件 @
9a471495
...
...
@@ -269,7 +269,7 @@ qemudCapsInitGuest(virCapsPtr caps,
* which can be used with magic cpu choice
*/
hasbase
=
(
access
(
info
->
binary
,
X_OK
)
==
0
);
hasaltbase
=
(
access
(
info
->
altbinary
,
X_OK
)
==
0
);
hasaltbase
=
(
info
->
altbinary
&&
access
(
info
->
altbinary
,
X_OK
)
==
0
);
/* Can use acceleration for KVM/KQEMU if
* - host & guest arches match
...
...
src/storage_conf.c
浏览文件 @
9a471495
...
...
@@ -401,12 +401,13 @@ virStorageDefParsePerms(virConnectPtr conn,
}
else
{
char
*
end
=
NULL
;
perms
->
mode
=
strtol
(
mode
,
&
end
,
8
);
VIR_FREE
(
mode
);
if
(
*
end
||
perms
->
mode
<
0
||
perms
->
mode
>
0777
)
{
VIR_FREE
(
mode
);
virStorageReportError
(
conn
,
VIR_ERR_XML_ERROR
,
"%s"
,
_
(
"malformed octal mode"
));
goto
error
;
}
VIR_FREE
(
mode
);
}
if
(
virXPathNode
(
conn
,
"./owner"
,
ctxt
)
==
NULL
)
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录