HomeFreeBSD

Fix uninitialized value read in vdev_prop_set()

Description

Fix uninitialized value read in vdev_prop_set()

If no errors are encountered, we read an uninitialized error value.

Clang's static analyzer complained about this.

Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Reviewed-by: Ryan Moeller <ryan@iXsystems.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Richard Yao <richard.yao@alumni.stonybrook.edu>
Closes #14007

Details

Provenance
Richard Yao <richard.yao@alumni.stonybrook.edu>Authored on Oct 11 2022, 7:24 PM
GitHub <noreply@github.com>Committed on Oct 11 2022, 7:24 PM
Parents
rGe5646c5e3726: zvol_wait logic may terminate prematurely
Branches
Unknown
Tags
Unknown

Event Timeline

GitHub <noreply@github.com> committed rG70248b82e822: Fix uninitialized value read in vdev_prop_set() (authored by Richard Yao <richard.yao@alumni.stonybrook.edu>).Oct 11 2022, 7:24 PM