linux/drivers/infiniband
Patrick Kelsey a0d198f79a IB/hfi1: Fix math bugs in hfi1_can_pin_pages()
Fix arithmetic and logic errors in hfi1_can_pin_pages() that  would allow
hfi1 to attempt pinning pages in cases where it should not because of
resource limits or lack of required capability.

Fixes: 2c97ce4f3c ("IB/hfi1: Add pin query function")
Link: https://lore.kernel.org/r/167656658362.2223096.10954762619837718026.stgit@awfm-02.cornelisnetworks.com
Signed-off-by: Brendan Cunningham <bcunningham@cornelisnetworks.com>
Signed-off-by: Patrick Kelsey <pat.kelsey@cornelisnetworks.com>
Signed-off-by: Dennis Dalessandro <dennis.dalessandro@cornelisnetworks.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
2023-02-17 16:38:26 -04:00
..
core RDMA/cma: Distinguish between sockaddr_in and sockaddr_in6 by size 2023-02-16 11:20:20 -04:00
hw IB/hfi1: Fix math bugs in hfi1_can_pin_pages() 2023-02-17 16:38:26 -04:00
sw RDMA/rxe: Fix missing memory barriers in rxe_queue.h 2023-02-16 12:07:05 -04:00
ulp Merge branch 'mlx5-next' into HEAD 2023-01-15 12:22:36 +02:00
Kconfig RDMA: Disable IB HW for UML 2022-12-04 15:22:03 +02:00
Makefile