aboutsummaryrefslogtreecommitdiffstats
path: root/xen/common/multicall.c
diff options
context:
space:
mode:
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>2006-02-15 15:20:32 +0100
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>2006-02-15 15:20:32 +0100
commitad08f1cd83c320f2b66bb4a867b4cb71aac4f4a1 (patch)
tree1ee16d5ea54ea481142cf45b470dbe7fa0427e3f /xen/common/multicall.c
parent1a5dc16c668394d2205e3b2b42fbeb8df54398e0 (diff)
downloadxen-ad08f1cd83c320f2b66bb4a867b4cb71aac4f4a1.tar.gz
xen-ad08f1cd83c320f2b66bb4a867b4cb71aac4f4a1.tar.bz2
xen-ad08f1cd83c320f2b66bb4a867b4cb71aac4f4a1.zip
Clean up grant-table code and replace uses of get_user
and put_user in common code. This is an attempt to narrow the uaccess API before it gets replaced. Signed-off-by: Keir Fraser <keir@xensource.com>
Diffstat (limited to 'xen/common/multicall.c')
-rw-r--r--xen/common/multicall.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/xen/common/multicall.c b/xen/common/multicall.c
index dd23a4689b..d6473a8b4b 100644
--- a/xen/common/multicall.c
+++ b/xen/common/multicall.c
@@ -57,7 +57,9 @@ long do_multicall(struct multicall_entry *call_list, unsigned int nr_calls)
}
#endif
- if ( unlikely(__put_user(mcs->call.result, &call_list[i].result)) )
+ if ( unlikely(__copy_to_user(&call_list[i].result,
+ &mcs->call.result,
+ sizeof(mcs->call.result))) )
{
DPRINTK("Error writing result back to multicall block.\n");
goto fault;