Commit 643d4316 authored by Robin Holt's avatar Robin Holt Committed by Linus Torvalds

[PATCH] Fix write() return values for tmpfs.

This patch makes the return from the write() syscall actually an ssize_t
instead of an int.
Signed-off-by: default avatarRobin Holt <holt@sgi.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 8cc3d21c
......@@ -1301,7 +1301,7 @@ shmem_file_write(struct file *file, const char __user *buf, size_t count, loff_t
struct inode *inode = file->f_dentry->d_inode;
loff_t pos;
unsigned long written;
int err;
ssize_t err;
if ((ssize_t) count < 0)
return -EINVAL;
......
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