From 643d4316a60164d888f59b26cb37ae578da692e3 Mon Sep 17 00:00:00 2001 From: Robin Holt Date: Thu, 16 Sep 2004 22:17:17 -0700 Subject: [PATCH] [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: Robin Holt Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- mm/shmem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/shmem.c b/mm/shmem.c index 3a8d1636298e2..296a61073ef60 100644 --- a/mm/shmem.c +++ b/mm/shmem.c @@ -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; -- 2.53.0