Skip to contentSkip to conversation

jfs sparse fixes

PATCH New [email protected] 1 participant 1 message Sep 28, 2003 JFS filesystem

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 jfs sparse fixes

fs/jfs/jfs_debug.c +1 -1
diff -u --recursive --new-file -X /linux/dontdiff a/fs/jfs/jfs_debug.c b/fs/jfs/jfs_debug.c
@@ -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;
fs/jfs/symlink.c +1 -1
diff -u --recursive --new-file -X /linux/dontdiff a/fs/jfs/symlink.c b/fs/jfs/symlink.c
@@ -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);