mirror_zfs/module/os
Richard Yao 9a8039439a Cleanup: Simplify userspace abd_free_chunks()
Clang's static analyzer complained that we could use after free here if
the inner loop ever iterated. That is a false positive, but upon
inspection, the userland abd_alloc_chunks() function never will put
multiple consecutive pages into a `struct scatterlist`, so there is no
need to loop. We delete the inner loop.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Richard Yao <richard.yao@alumni.stonybrook.edu>
Closes #14042
2022-10-18 15:39:21 -07:00
..
freebsd Cleanup: Address Clang's static analyzer's unused code complaints 2022-10-14 13:37:54 -07:00
linux Cleanup: Simplify userspace abd_free_chunks() 2022-10-18 15:39:21 -07:00