X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=fs%2Ffhandle.c;h=c9e18f3ecc41124979b53dd607bb1b347512a8ad;hb=fec8ddd2a735a9e20845a057227ab37eb634e7ea;hp=6b088641f5bf24ce72311a3b8073ce44516b8624;hpb=71a8638480eb8fb6cfabe2ee9ca3fbc6e3453a14;p=pandora-kernel.git diff --git a/fs/fhandle.c b/fs/fhandle.c index 6b088641f5bf..c9e18f3ecc41 100644 --- a/fs/fhandle.c +++ b/fs/fhandle.c @@ -196,8 +196,9 @@ static int handle_to_path(int mountdirfd, struct file_handle __user *ufh, goto out_err; } /* copy the full handle */ - if (copy_from_user(handle, ufh, - sizeof(struct file_handle) + + *handle = f_handle; + if (copy_from_user(&handle->f_handle, + &ufh->f_handle, f_handle.handle_bytes)) { retval = -EFAULT; goto out_handle;