2003-09-28 23:34:42

by Andries E. Brouwer

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

diff -u --recursive --new-file -X /linux/dontdiff a/fs/jfs/jfs_debug.c b/fs/jfs/jfs_debug.c
--- a/fs/jfs/jfs_debug.c Mon Sep 29 01:05:41 2003
+++ b/fs/jfs/jfs_debug.c Mon Sep 29 01:15:00 2003
@@ -81,7 +81,7 @@
return len;
}

-static int loglevel_write(struct file *file, const char *buffer,
+static int loglevel_write(struct file *file, const char __user *buffer,
unsigned long count, void *data)
{
char c;
diff -u --recursive --new-file -X /linux/dontdiff a/fs/jfs/symlink.c b/fs/jfs/symlink.c
--- a/fs/jfs/symlink.c Mon Sep 29 01:05:41 2003
+++ b/fs/jfs/symlink.c Mon Sep 29 01:15:00 2003
@@ -26,7 +26,7 @@
return vfs_follow_link(nd, s);
}

-static int jfs_readlink(struct dentry *dentry, char *buffer, int buflen)
+static int jfs_readlink(struct dentry *dentry, char __user *buffer, int buflen)
{
char *s = JFS_IP(dentry->d_inode)->i_inline;
return vfs_readlink(dentry, buffer, buflen, s);