summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2016-09-23 18:45:15 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2016-09-23 18:45:15 +0200
commite47f2e50ead9dd9eb10b2626d739760e71ce6d43 (patch)
treef841a01ac6f5b9a41ba33589ef1358a9f95dd954 /fs
parentMerge tag 'media/v4.8-7' of git://git.kernel.org/pub/scm/linux/kernel/git/mch... (diff)
parentconfigfs: Return -EFBIG from configfs_write_bin_file. (diff)
downloadlinux-e47f2e50ead9dd9eb10b2626d739760e71ce6d43.tar.xz
linux-e47f2e50ead9dd9eb10b2626d739760e71ce6d43.zip
Merge tag 'configfs-for-4.8-2' of git://git.infradead.org/users/hch/configfs
Pull configfs fix from Christoph Hellwig: "One more trivial fix for the binary attribute code from Phil Turnbull" * tag 'configfs-for-4.8-2' of git://git.infradead.org/users/hch/configfs: configfs: Return -EFBIG from configfs_write_bin_file.
Diffstat (limited to 'fs')
-rw-r--r--fs/configfs/file.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/configfs/file.c b/fs/configfs/file.c
index c30cf49b69d2..2c6312db8516 100644
--- a/fs/configfs/file.c
+++ b/fs/configfs/file.c
@@ -333,6 +333,7 @@ configfs_write_bin_file(struct file *file, const char __user *buf,
if (bin_attr->cb_max_size &&
*ppos + count > bin_attr->cb_max_size) {
len = -EFBIG;
+ goto out;
}
tbuf = vmalloc(*ppos + count);