dm flakey: fix a bug with 32-bit highmem systems
authorMikulas Patocka <mpatocka@redhat.com>
Sun, 22 Jan 2023 19:03:31 +0000 (14:03 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Mar 2023 08:40:07 +0000 (09:40 +0100)
commit0e22e04774797f29f19474755750791e2c1c2327
tree53e89642a9e3d23d1325017533c4eef4cc27cce1
parentff60b2bb680ebcaf8890814dd51084a022891469
dm flakey: fix a bug with 32-bit highmem systems

commit 8eb29c4fbf9661e6bd4dd86197a37ffe0ecc9d50 upstream.

The function page_address does not work with 32-bit systems with high
memory. Use bvec_kmap_local/kunmap_local instead.

Cc: stable@vger.kernel.org
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Reviewed-by: Sweet Tea Dorminy <sweettea-kernel@dorminy.me>
Signed-off-by: Mike Snitzer <snitzer@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/md/dm-flakey.c