[PATCH] cifs: Fix kmap_local_page() unmapping

Paulo Alcantara pc at cjr.nz
Thu Dec 29 22:13:09 UTC 2022


Ira Weiny <ira.weiny at intel.com> writes:

> 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: d406d26745ab ("cifs: skip alloc when request has no pages")
> Cc: Paulo Alcantara <pc at cjr.nz>
> Cc: Steve French <sfrench at samba.org>
> Cc: "Fabio M. De Francesco" <fmdefrancesco at gmail.com>
> Cc: linux-cifs at vger.kernel.org
> Cc: samba-technical at lists.samba.org
> Signed-off-by: Ira Weiny <ira.weiny at intel.com>
> ---
>  fs/cifs/smb2ops.c | 9 ++-------
>  1 file changed, 2 insertions(+), 7 deletions(-)

Reviewed-by: Paulo Alcantara (SUSE) <pc at cjr.nz>



More information about the samba-technical mailing list