Merge branches 'work.namei', 'work.dcache' and 'work.iov_iter' into for-linus

This commit is contained in:
Al Viro
2016-12-15 01:07:29 -05:00
34 changed files with 221 additions and 316 deletions

View File

@@ -748,7 +748,7 @@ static ssize_t devkmsg_write(struct kiocb *iocb, struct iov_iter *from)
return -ENOMEM;
buf[len] = '\0';
if (copy_from_iter(buf, len, from) != len) {
if (!copy_from_iter_full(buf, len, from)) {
kfree(buf);
return -EFAULT;
}