2003-09-28 23:34:42

by Andries E. Brouwer

[permalink] [raw]
Subject: [PATCH] freevxfs sparse fixes

diff -u --recursive --new-file -X /linux/dontdiff a/fs/freevxfs/vxfs_immed.c b/fs/freevxfs/vxfs_immed.c
--- a/fs/freevxfs/vxfs_immed.c Mon Sep 29 01:05:41 2003
+++ b/fs/freevxfs/vxfs_immed.c Mon Sep 29 01:12:16 2003
@@ -39,7 +39,7 @@
#include "vxfs_inode.h"


-static int vxfs_immed_readlink(struct dentry *, char *, int);
+static int vxfs_immed_readlink(struct dentry *, char __user *, int);
static int vxfs_immed_follow_link(struct dentry *, struct nameidata *);

static int vxfs_immed_readpage(struct file *, struct page *);
@@ -77,7 +77,7 @@
* Number of bytes successfully copied to userspace.
*/
static int
-vxfs_immed_readlink(struct dentry *dp, char *bp, int buflen)
+vxfs_immed_readlink(struct dentry *dp, char __user *bp, int buflen)
{
struct vxfs_inode_info *vip = VXFS_INO(dp->d_inode);