|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] [xen-unstable] [IA64] Fix XEN_DOMCTL_shadow_op. it shoul
# HG changeset patch
# User Alex Williamson <alex.williamson@xxxxxx>
# Date 1199044434 25200
# Node ID 6c0aec4604f7d1e7c2223bdaa365fb5f54fe4fc2
# Parent 3d7213deb33e863a32d10f44d1c3800a1235309b
[IA64] Fix XEN_DOMCTL_shadow_op. it should check copy_to_guest() return value.
Pointed out by Samuel Thibault.
Signed-off-by: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>
---
xen/arch/ia64/xen/dom0_ops.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletion(-)
diff -r 3d7213deb33e -r 6c0aec4604f7 xen/arch/ia64/xen/dom0_ops.c
--- a/xen/arch/ia64/xen/dom0_ops.c Sun Dec 30 12:50:09 2007 -0700
+++ b/xen/arch/ia64/xen/dom0_ops.c Sun Dec 30 12:53:54 2007 -0700
@@ -168,7 +168,8 @@ long arch_do_domctl(xen_domctl_t *op, XE
{
ret = shadow_mode_control(d, &op->u.shadow_op);
put_domain(d);
- copy_to_guest(u_domctl, op, 1);
+ if (copy_to_guest(u_domctl, op, 1))
+ ret = -EFAULT;
}
}
break;
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-changelog] [xen-unstable] [IA64] Fix XEN_DOMCTL_shadow_op. it should check copy_to_guest() return value.,
Xen patchbot-unstable <=
|
|
|
|
|