]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
RDMA/mana_ib: use the correct page size for mapping user-mode doorbell page
authorLong Li <longli@microsoft.com>
Fri, 30 Aug 2024 15:16:33 +0000 (08:16 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Oct 2024 10:00:58 +0000 (12:00 +0200)
commit0b8e9f0e43f4de4761bf5cc3144116fbe86ab146
treebb8f3ab90aa47eaf1b5f80c62af09eec051f7dcb
parent51d7f10492340131de9ce7c8f793d4048191bfb9
RDMA/mana_ib: use the correct page size for mapping user-mode doorbell page

commit 4a3b99bc04e501b816db78f70064e26a01257910 upstream.

When mapping doorbell page from user-mode, the driver should use the system
page size as this memory is allocated via mmap() from user-mode.

Cc: stable@vger.kernel.org
Fixes: 0266a177631d ("RDMA/mana_ib: Add a driver for Microsoft Azure Network Adapter")
Signed-off-by: Long Li <longli@microsoft.com>
Link: https://patch.msgid.link/1725030993-16213-2-git-send-email-longli@linuxonhyperv.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/infiniband/hw/mana/main.c