summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorStephen Rothwell <sfr@canb.auug.org.au>2016-09-22 10:13:28 +1000
committerStephen Rothwell <sfr@canb.auug.org.au>2016-09-22 10:13:28 +1000
commit1a3f0c95634e670a03bb475c8f2b85d812c5434e (patch)
treeb6063d64ee71998f861083dbb6eb42ed67d0ebff /fs
parent8d91b21fdc8236cbdfbf7b1d10c6f1714e72e2ad (diff)
parent42857cf512cb34c2c8cb50f1e766689d979d64e0 (diff)
Merge remote-tracking branch 'configfs/for-next'
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);