HomeFreeBSD

set_global_var() should not pass NULL pointers to dlclose()

Description

set_global_var() should not pass NULL pointers to dlclose()

Both Coverity and Clang's static analyzer caught this.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Richard Yao <richard.yao@alumni.stonybrook.edu>
Closes #14044

Details

Provenance
Richard Yao <richard.yao@alumni.stonybrook.edu>Authored on Oct 16 2022, 4:56 AM
Tony Hutter <hutter2@llnl.gov>Committed on Dec 1 2022, 8:39 PM
Parents
rG409c99a1d3e5: Fix NULL pointer dereference in spa_open_common()
Branches
Unknown
Tags
Unknown

Event Timeline

Tony Hutter <hutter2@llnl.gov> committed rG89c41f3979c1: set_global_var() should not pass NULL pointers to dlclose() (authored by Richard Yao <richard.yao@alumni.stonybrook.edu>).Dec 1 2022, 8:39 PM