Skip to content
Commit 67fcb2c5 authored by Ira Weiny's avatar Ira Weiny Committed by Steve French
Browse files

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: d406d267 ("cifs: skip alloc when request has no pages")
Reviewed-by: default avatarPaulo Alcantara <pc@cjr.nz>
Reviewed-by: default avatar"Fabio M. De Francesco" <fmdefrancesco@gmail.com>
Cc: linux-cifs@vger.kernel.org
Cc: samba-technical@lists.samba.org
Signed-off-by: default avatarIra Weiny <ira.weiny@intel.com>
Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
parent 88603b6d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment