Re: [PATCH] module/decompress: Never use kunmap() for local un-mappings

From: Luis Chamberlain
Date: Wed Mar 22 2023 - 19:24:50 EST


From: Luis Chamberlain <mcgrof@xxxxxxxxxx>

On Wed, 15 Mar 2023 13:52:56 +0100, Fabio M. De Francesco wrote:
> Use kunmap_local() to unmap pages locally mapped with kmap_local_page().
>
> kunmap_local() must be called on the kernel virtual address returned by
> kmap_local_page(), differently from how we use kunmap() which instead
> expects the mapped page as its argument.
>
> In module_zstd_decompress() we currently map with kmap_local_page() and
> unmap with kunmap(). This breaks the code and so it should be fixed.
>
> [...]

Applied, thanks!

[1/1] module/decompress: Never use kunmap() for local un-mappings
commit: 3c17655ab13704582fe25e8ea3200a9b2f8bf20a

Luis