diff options
author | Ian Campbell <ian.campbell@xensource.com> | 2007-01-31 10:11:26 +0000 |
---|---|---|
committer | Ian Campbell <ian.campbell@xensource.com> | 2007-01-31 10:11:26 +0000 |
commit | ff0b3cef8ddd22fa2cce178c2bc894a966f8a0bb (patch) | |
tree | 9c4d001baf73616333494ad29b4efc6feebfc323 /xen/common/kernel.c | |
parent | 8a3405e40252f660016676e2768fcd47c26e0a60 (diff) | |
download | xen-ff0b3cef8ddd22fa2cce178c2bc894a966f8a0bb.tar.gz xen-ff0b3cef8ddd22fa2cce178c2bc894a966f8a0bb.tar.bz2 xen-ff0b3cef8ddd22fa2cce178c2bc894a966f8a0bb.zip |
[XEN] Fix XENVER_capabilities hypercall.
Passing an array to a function turns it into a pointer which confuses
safe_strcat.
Also fix 54->64 typo in ia64 tree.
Thanks to Alex Williamson for pointing out the problem.
Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
Diffstat (limited to 'xen/common/kernel.c')
-rw-r--r-- | xen/common/kernel.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xen/common/kernel.c b/xen/common/kernel.c index 4c22cf8803..fa448b07a3 100644 --- a/xen/common/kernel.c +++ b/xen/common/kernel.c @@ -162,10 +162,10 @@ DO(xen_version)(int cmd, XEN_GUEST_HANDLE(void) arg) case XENVER_capabilities: { xen_capabilities_info_t info; - extern void arch_get_xen_caps(xen_capabilities_info_t info); + extern void arch_get_xen_caps(xen_capabilities_info_t *info); memset(info, 0, sizeof(info)); - arch_get_xen_caps(info); + arch_get_xen_caps(&info); if ( copy_to_guest(arg, (char *)info, sizeof(info)) ) return -EFAULT; |