Skip to contentSkip to conversation

hpfs sparse fixes

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

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hpfs sparse fixes

fs/hpfs/file.c +2 -1
diff -u --recursive --new-file -X /linux/dontdiff a/fs/hpfs/file.c b/fs/hpfs/file.c
@@ -124,7 +124,8 @@
 	.bmap = _hpfs_bmap
 };
 
-ssize_t hpfs_file_write(struct file *file, const char *buf, size_t count, loff_t *ppos)
+ssize_t hpfs_file_write(struct file *file, const char __user *buf,
+			size_t count, loff_t *ppos)
 {
 	ssize_t retval;
 
fs/hpfs/hpfs_fn.h +1 -1
diff -u --recursive --new-file -X /linux/dontdiff a/fs/hpfs/hpfs_fn.h b/fs/hpfs/hpfs_fn.h
@@ -249,7 +249,7 @@
 secno hpfs_bmap(struct inode *, unsigned);
 void hpfs_truncate(struct inode *);
 int hpfs_get_block(struct inode *inode, sector_t iblock, struct buffer_head *bh_result, int create);
-ssize_t hpfs_file_write(struct file *file, const char *buf, size_t count, loff_t *ppos);
+ssize_t hpfs_file_write(struct file *file, const char __user *buf, size_t count, loff_t *ppos);
 
 /* inode.c */