author: Dan Carpenter <dan.carpenter@oracle.com> 2013-07-03 15:00:45 -0700
committer: Linus Torvalds <torvalds@linux-foundation.org> 2013-07-03 16:07:23 -0700
commit: 7121064b214bbc97007ec4d0e70aaeffef1b55f7
parent: 3b1f9f53b18b2007803de17ab79cea736d5baf81
Commit Summary:
Diffstat:
1 file changed, 1 insertion, 1 deletion
diff --git a/fs/configfs/file.c b/fs/configfs/file.c
index 2b6cb23dd14e..1d1c41f1014d 100644
--- a/fs/configfs/file.c
+++ b/fs/configfs/file.c
@@ -203,7 +203,7 @@ configfs_write_file(struct file *file, const char __user *buf, size_t count, lof
mutex_lock(&buffer->mutex);
len = fill_write_buffer(buffer, buf, count);
if (len > 0)
- len = flush_write_buffer(file->f_path.dentry, buffer, count);
+ len = flush_write_buffer(file->f_path.dentry, buffer, len);
if (len > 0)
*ppos += len;
mutex_unlock(&buffer->mutex);