diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2016-09-23 18:45:15 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2016-09-23 18:45:15 +0200 |
commit | e47f2e50ead9dd9eb10b2626d739760e71ce6d43 (patch) | |
tree | f841a01ac6f5b9a41ba33589ef1358a9f95dd954 /fs | |
parent | Merge tag 'media/v4.8-7' of git://git.kernel.org/pub/scm/linux/kernel/git/mch... (diff) | |
parent | configfs: Return -EFBIG from configfs_write_bin_file. (diff) | |
download | linux-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.c | 1 |
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); |