Commit 67fcb2c
cifs: Fix kmap_local_page() unmapping
kmap_local_page() requires kunmap_local() to unmap the mapping. In
addition memcpy_page() is provided to perform this common memcpy
pattern.
Replace the kmap_local_page() and broken kunmap() with memcpy_page()
Fixes: d406d26 ("cifs: skip alloc when request has no pages")
Reviewed-by: Paulo Alcantara <pc@cjr.nz>
Reviewed-by: "Fabio M. De Francesco" <fmdefrancesco@gmail.com>
Cc: linux-cifs@vger.kernel.org
Cc: samba-technical@lists.samba.org
Signed-off-by: Ira Weiny <ira.weiny@intel.com>
Signed-off-by: Steve French <stfrench@microsoft.com>1 parent 88603b6 commit 67fcb2c
1 file changed
Lines changed: 2 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4488 | 4488 | | |
4489 | 4489 | | |
4490 | 4490 | | |
4491 | | - | |
4492 | 4491 | | |
4493 | 4492 | | |
4494 | 4493 | | |
4495 | 4494 | | |
4496 | | - | |
4497 | | - | |
4498 | | - | |
4499 | | - | |
4500 | | - | |
4501 | | - | |
| 4495 | + | |
| 4496 | + | |
4502 | 4497 | | |
4503 | 4498 | | |
4504 | 4499 | | |
| |||
0 commit comments