Merge branches 'work.namei', 'work.dcache' and 'work.iov_iter' into for-linus
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user