Commit 409c99a
Fix NULL pointer dereference in spa_open_common()
Calling spa_open() will pass a NULL pointer to spa_open_common()'s
config parameter. Under the right circumstances, we will dereference the
config parameter without doing a NULL check.
Clang's static analyzer found this.
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Richard Yao <richard.yao@alumni.stonybrook.edu>
Closes openzfs#140441 parent bbec0e6 commit 409c99a
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5230 | 5230 | | |
5231 | 5231 | | |
5232 | 5232 | | |
5233 | | - | |
| 5233 | + | |
5234 | 5234 | | |
5235 | 5235 | | |
5236 | 5236 | | |
| |||
0 commit comments