diff options
author | Hanabishi | 2021-08-14 00:14:34 +0500 |
---|---|---|
committer | Hanabishi | 2021-08-14 00:14:34 +0500 |
commit | cdecdcd7f74d30d8b545faa56b7a4df36129bfc7 (patch) | |
tree | ce5bd284c65bc1f7e537d3f396c2082ce37d0bd7 /kernel-5.14-backport.patch | |
download | aur-cdecdcd7f74d30d8b545faa56b7a4df36129bfc7.tar.gz |
Package created
Diffstat (limited to 'kernel-5.14-backport.patch')
-rw-r--r-- | kernel-5.14-backport.patch | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/kernel-5.14-backport.patch b/kernel-5.14-backport.patch new file mode 100644 index 000000000000..e8d60eb8b92d --- /dev/null +++ b/kernel-5.14-backport.patch @@ -0,0 +1,16 @@ +--- a/file.c ++++ b/file.c +@@ -910,10 +910,10 @@ + size_t cp, tail = PAGE_SIZE - off; + + page = pages[ip]; +- cp = copy_page_from_iter_atomic(page, off, +- min(tail, bytes), from); ++ cp = iov_iter_copy_from_user_atomic(page, from, off, ++ min(tail, bytes)); + flush_dcache_page(page); +- ++ iov_iter_advance(from, cp); + copied += cp; + bytes -= cp; + if (!bytes || !cp) |