projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
configfs: Return -EFBIG from configfs_write_bin_file.
[cascardo/linux.git]
/
fs
/
configfs
/
file.c
diff --git
a/fs/configfs/file.c
b/fs/configfs/file.c
index
c30cf49
..
2c6312d
100644
(file)
--- 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);