mirror_zfs/module/os/linux
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
..
spl Linux 6.1 compat: change order of sys/mutex.h includes 2022-10-18 12:29:44 -07:00
zfs Cleanup: Simplify userspace abd_free_chunks() 2022-10-18 15:39:21 -07:00