diff options
author | Patrick Kelsey <pat.kelsey@cornelisnetworks.com> | 2023-02-16 11:56:23 -0500 |
---|---|---|
committer | Jason Gunthorpe <jgg@nvidia.com> | 2023-02-17 16:38:26 -0400 |
commit | a0d198f79a8d033bd46605b779859193649f1f99 (patch) | |
tree | e8277b1dc085a330a0cb61ba5bb2679b8e094527 /scripts/gdb/linux/utils.py | |
parent | d2225b838ccad126045e048471441693c7bca217 (diff) |
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: 2c97ce4f3c29 ("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>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions