diff --git a/lib/iov_iter.c b/lib/iov_iter.c index 1abb32c0da50..59832f73a4f2 100644 --- a/lib/iov_iter.c +++ b/lib/iov_iter.c @@ -478,6 +478,7 @@ size_t copy_page_from_iter_atomic(struct page *page, size_t offset, } p = kmap_atomic(page) + offset; + memset(p, 0, n); n = __copy_from_iter(p, n, i); kunmap_atomic(p); copied += n;