Skip to content

Commit

Permalink
FreeBSD: Fix uninitialized pointer read in spa_import_rootpool()
Browse files Browse the repository at this point in the history
The FreeBSD project's coverity scans found this.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Ryan Moeller <ryan@iXsystems.com>
Signed-off-by: Richard Yao <richard.yao@alumni.stonybrook.edu>
Closes openzfs#13923
  • Loading branch information
ryao authored and andrewc12 committed Oct 1, 2022
1 parent 27e1b96 commit d052ab2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion module/os/freebsd/zfs/spa_os.c
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ spa_import_rootpool(const char *name, bool checkpointrewind)
mutex_exit(&spa_namespace_lock);
fnvlist_free(config);
cmn_err(CE_NOTE, "Can not parse the config for pool '%s'",
pname);
name);
return (error);
}

Expand Down

0 comments on commit d052ab2

Please sign in to comment.