]> 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)
committerJason Gunthorpe <jgg@nvidia.com>
Wed, 17 Dec 2025 17:48:17 +0000 (13:48 -0400)
commit85463eb6a46caf2f1e0e1a6d0731f2f3bab17780
tree0aa5033146072cff33cdfdfe4d6474652f6d21ad
parentc1776ccba661c946f2e42aaa11eda81e2cd764c5
RDMA/efa: Remove possible negative shift

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>
drivers/infiniband/hw/efa/efa_verbs.c