]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
RDMA/efa: Remove possible negative shift
authorMichael Margolin <mrgolin@amazon.com>
Wed, 10 Dec 2025 17:36:56 +0000 (17:36 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 8 Jan 2026 09:16:49 +0000 (10:16 +0100)
commit277f1f4a80b40e5c12489f59b77ea4e2402cd765
tree0e61b966c801d98b16316a02b31ff0a5c56af553
parentd9b9affd103f51b42322da4ed5ac025b560bc354
RDMA/efa: Remove possible negative shift

[ Upstream commit 85463eb6a46caf2f1e0e1a6d0731f2f3bab17780 ]

The page size used for device might in some cases be smaller than
PAGE_SIZE what results in a negative shift when calculating the number of
host pages in PAGE_SIZE for a debug log. Remove the debug line together
with the calculation.

Fixes: 40909f664d27 ("RDMA/efa: Add EFA verbs implementation")
Link: https://patch.msgid.link/r/20251210173656.8180-1-mrgolin@amazon.com
Reviewed-by: Tom Sela <tomsela@amazon.com>
Reviewed-by: Yonatan Nachum <ynachum@amazon.com>
Signed-off-by: Michael Margolin <mrgolin@amazon.com>
Reviewed-by: Gal Pressman <gal.pressman@linux.dev>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/infiniband/hw/efa/efa_verbs.c