[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH 34/34] DO NOT APPLY xen/common: kernel: Workaround clang 3.5
http://llvm.org/bugs/show_bug.cgi?id=19199 Signed-off-by: Julien Grall <julien.grall@xxxxxxxxxx> --- xen/common/kernel.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/xen/common/kernel.c b/xen/common/kernel.c index b371f8f..320c3fb 100644 --- a/xen/common/kernel.c +++ b/xen/common/kernel.c @@ -342,8 +342,9 @@ DO(xen_version)(int cmd, XEN_GUEST_HANDLE_PARAM(void) arg) case XENVER_guest_handle: { - if ( copy_to_guest(arg, current->domain->handle, - ARRAY_SIZE(current->domain->handle)) ) + struct domain *d = current->domain; + + if ( copy_to_guest(arg, d->handle, ARRAY_SIZE(d->handle)) ) return -EFAULT; return 0; } -- 1.7.10.4 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |