X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=fs%2Fnfs%2Fidmap.c;h=b74c4e3a64e2a435759ad2115f1af64f3a772b00;hb=9bf4aaab3e101692164d49b7ca357651eb691cb6;hp=1d5d8a9dba1e8c07ade34e91b1c403a89f3bf891;hpb=db216c3d5e4c040e557a50f8f5d35d5c415e8c1c;p=linux-2.6.git diff --git a/fs/nfs/idmap.c b/fs/nfs/idmap.c index 1d5d8a9db..b74c4e3a6 100644 --- a/fs/nfs/idmap.c +++ b/fs/nfs/idmap.c @@ -75,9 +75,10 @@ struct idmap { struct idmap_hashtable idmap_group_hash; }; -static ssize_t idmap_pipe_upcall(struct file *, struct rpc_pipe_msg *, char *, - size_t); -static ssize_t idmap_pipe_downcall(struct file *, const char *, size_t); +static ssize_t idmap_pipe_upcall(struct file *, struct rpc_pipe_msg *, + char __user *, size_t); +static ssize_t idmap_pipe_downcall(struct file *, const char __user *, + size_t); void idmap_pipe_destroy_msg(struct rpc_pipe_msg *); static unsigned int fnvhash32(const void *, size_t); @@ -332,7 +333,7 @@ nfs_idmap_name(struct idmap *idmap, struct idmap_hashtable *h, /* RPC pipefs upcall/downcall routines */ static ssize_t idmap_pipe_upcall(struct file *filp, struct rpc_pipe_msg *msg, - char *dst, size_t buflen) + char __user *dst, size_t buflen) { char *data = (char *)msg->data + msg->copied; ssize_t mlen = msg->len - msg->copied; @@ -353,7 +354,7 @@ idmap_pipe_upcall(struct file *filp, struct rpc_pipe_msg *msg, } static ssize_t -idmap_pipe_downcall(struct file *filp, const char *src, size_t mlen) +idmap_pipe_downcall(struct file *filp, const char __user *src, size_t mlen) { struct rpc_inode *rpci = RPC_I(filp->f_dentry->d_inode); struct idmap *idmap = (struct idmap *)rpci->private;