Commit b81f362a authored by Andries E. Brouwer's avatar Andries E. Brouwer Committed by Linus Torvalds

[PATCH] sparse fix for fat/file.c

parent 12c7588e
......@@ -11,8 +11,8 @@
#include <linux/smp_lock.h>
#include <linux/buffer_head.h>
static ssize_t fat_file_write(struct file *filp, const char *buf, size_t count,
loff_t *ppos);
static ssize_t fat_file_write(struct file *filp, const char __user *buf,
size_t count, loff_t *ppos);
struct file_operations fat_file_operations = {
.llseek = generic_file_llseek,
......@@ -66,8 +66,8 @@ int fat_get_block(struct inode *inode, sector_t iblock,
return 0;
}
static ssize_t fat_file_write(struct file *filp, const char *buf, size_t count,
loff_t *ppos)
static ssize_t fat_file_write(struct file *filp, const char __user *buf,
size_t count, loff_t *ppos)
{
struct inode *inode = filp->f_dentry->d_inode;
int retval;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment