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 <[email protected]>
Reviewed-by: "Fabio M. De Francesco" <[email protected]>
Cc: [email protected]
Cc: [email protected]
Signed-off-by: Ira Weiny <[email protected]>
Signed-off-by: Steve French <[email protected]>1 parent 88603b6 commit 67fcb2c
1 file changed
+2
-7
lines changed| 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