misc/xilinx_sdfec: Call kunmap() on pages mapped with kmap()
authorFabio M. De Francesco <fmdefrancesco@gmail.com>
Thu, 1 Sep 2022 15:44:07 +0000 (17:44 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 9 Sep 2022 08:22:36 +0000 (10:22 +0200)
commite01b08d7f6d36f20533b7510ea3af90756125f35
tree6aac571db6ee0cda39f5ee20d319d6d4a768aea2
parentdd8dc442c1e3b1798fad61211f3b090523dd926d
misc/xilinx_sdfec: Call kunmap() on pages mapped with kmap()

Pages in an array are mapped in a loop but, after the code is done with
the virtual addresses, these pages are never unmapped.

Therefore, call kunmap() to unmap pages[i].

Cc: "Venkataramanan, Anirudh" <anirudh.venkataramanan@intel.com>
Cc: Ira Weiny <ira.weiny@intel.com>
Signed-off-by: Fabio M. De Francesco <fmdefrancesco@gmail.com>
Link: https://lore.kernel.org/r/20220901154408.23984-2-fmdefrancesco@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/xilinx_sdfec.c