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

[PATCH] fat sparse fixes

parent f4d91699
...@@ -663,7 +663,7 @@ int fat_dir_ioctl(struct inode * inode, struct file * filp, ...@@ -663,7 +663,7 @@ int fat_dir_ioctl(struct inode * inode, struct file * filp,
return -EINVAL; return -EINVAL;
} }
d1 = (struct dirent *)arg; d1 = (struct dirent __user *)arg;
if (!access_ok(VERIFY_WRITE, d1, sizeof(struct dirent[2]))) if (!access_ok(VERIFY_WRITE, d1, sizeof(struct dirent[2])))
return -EFAULT; return -EFAULT;
/* /*
......
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