Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
kobj_read_file: Return -1 on vn_rdwr() error
LLVM's static analyzer showed that we could subtract using an uninitialized value on an error from vn_rdwr(). The correct behavior is to return -1 on an error, so lets do that instead. Signed-off-by: Richard Yao <[email protected]> Signed-off-by: Brian Behlendorf <[email protected]> Closes openzfs#4104
- Loading branch information