aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-sub-ui.c
diff options
context:
space:
mode:
authorJason Gunthorpe <[email protected]>2022-12-07 16:44:42 -0400
committerJason Gunthorpe <[email protected]>2022-12-09 15:20:37 -0400
commita26fa392068d1dcdf781397b7a7dd908dd68f030 (patch)
tree728a1b102e8b808e82cdf331995826f5c948912e /lib/mpi/mpi-sub-ui.c
parentc9b8a83a8f2dca9f82288a621595a6a5970cdc5e (diff)
iommufd: Improve a few unclear bits of code
Correct a few items noticed late in review: - We should assert that the math in batch_clear_carry() doesn't underflow - user->locked should be -1 not 0 sicne we just did mmput - npages should not have been recalculated, it already has that value No functional change. Fixes: 8d160cd4d506 ("iommufd: Algorithms for PFN storage") Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Kevin Tian <[email protected]> Reviewed-by: Eric Auger <[email protected]> Reported-by: Binbin Wu <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions