HomeFreeBSD

ztest: comparisons against errno should not assign to it

Description

ztest: comparisons against errno should not assign to it

888914486e26d81c8dbfd7a9d8091c05f9fc98ba introduced this regression.

I used cscope to verify that there are no other instances of this in the
codebase. This is the one of the few bugs that are extremely easy to
identify using cscope.

Reviewed-by: Damian Szuberski <szuberskidamian@gmail.com>
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Richard Yao <richard.yao@alumni.stonybrook.edu>
Closes #14264

Details

Provenance
Richard Yao <richard.yao@alumni.stonybrook.edu>Authored on Dec 3 2022, 11:08 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Dec 8 2022, 10:15 PM
Parents
rGba87ed14103d: Fix potential buffer overflow in zpool command
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG2709ace096b8: ztest: comparisons against errno should not assign to it (authored by Richard Yao <richard.yao@alumni.stonybrook.edu>).Dec 8 2022, 10:15 PM