Commit bc1b542be9aba019ea89ef04da1f3592018a2a60

Authored by J. Bruce Fields
1 parent 2355c59644

nfsd4: preserve __user annotation on cld downcall msg

Reviewed-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

fs/nfsd/nfs4recover.c
... ... @@ -570,7 +570,7 @@
570 570 cld_pipe_downcall(struct file *filp, const char __user *src, size_t mlen)
571 571 {
572 572 struct cld_upcall *tmp, *cup;
573   - struct cld_msg *cmsg = (struct cld_msg *)src;
  573 + struct cld_msg __user *cmsg = (struct cld_msg __user *)src;
574 574 uint32_t xid;
575 575 struct nfsd_net *nn = net_generic(filp->f_dentry->d_sb->s_fs_info,
576 576 nfsd_net_id);