diff options
author | Joao Martins <[email protected]> | 2024-06-27 12:01:03 +0100 |
---|---|---|
committer | Jason Gunthorpe <[email protected]> | 2024-06-28 13:12:23 -0300 |
commit | 00fa1a89917fbc319909231e648439b26e8857af (patch) | |
tree | 17eec65c52afcabd92e3f8503df2b363c4efec18 /lib/memory-notifier-error-inject.c | |
parent | 781bc08797a2146400332acf2d7706793b51e20f (diff) |
iommufd/iova_bitmap: Consolidate iova_bitmap_set exit conditionals
There's no need to have two conditionals when they are closely tied
together. Move the setting of bitmap::set_ahead_length after it checks for
::pages array out of bounds access.
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Joao Martins <[email protected]>
Reviewed-by: Kevin Tian <[email protected]>
Tested-by: Matt Ochs <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions