Showing the changes to kernel (1 of 34 files). Show all
Unified · Split
| @@ -748,7 +748,7 @@ static ssize_t devkmsg_write(struct kiocb *iocb, struct iov_iter *from) · 747 unmodified lines | ||
| 748 | 748 | return -ENOMEM; |
| 749 | 749 | |
| 750 | 750 | buf[len] = '\0'; |
| 751 | − if (copy_from_iter(buf, len, from) != len) { | |
| 751 | + if (!copy_from_iter_full(buf, len, from)) { | |
| 752 | 752 | kfree(buf); |
| 753 | 753 | return -EFAULT; |
| 754 | 754 | } |