summaryrefslogtreecommitdiffstats
path: root/module/zfs/spa_config.c
diff options
context:
space:
mode:
authorcao <[email protected]>2016-10-08 04:19:43 +0800
committerBrian Behlendorf <[email protected]>2016-10-07 13:19:43 -0700
commitccc92611b1bd0a78a72f553472a91ef1e83b06c5 (patch)
tree119b75f97b2afab3eeafcbd1fdc81322c0512549 /module/zfs/spa_config.c
parent482cd9ee69e88710e9241fac220501ea4e101d19 (diff)
Fix coverity defects: CID 147565-147567
coverity scan CID:147567, Type:dereference null return value coverity scan CID:147566, Type:dereference null return value coverity scan CID:147565, Type:dereference null return value Reviewed by: Richard Laager <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: cao.xuewen <[email protected]> Closes #5166
Diffstat (limited to 'module/zfs/spa_config.c')
-rw-r--r--module/zfs/spa_config.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/module/zfs/spa_config.c b/module/zfs/spa_config.c
index f31daf9ed..a3ff24bd5 100644
--- a/module/zfs/spa_config.c
+++ b/module/zfs/spa_config.c
@@ -270,6 +270,7 @@ spa_config_sync(spa_t *target, boolean_t removing, boolean_t postsysevent)
mutex_enter(&spa->spa_props_lock);
tdp = list_head(&spa->spa_config_list);
if (spa->spa_config == NULL ||
+ tdp == NULL ||
tdp->scd_path == NULL ||
strcmp(tdp->scd_path, dp->scd_path) != 0) {
mutex_exit(&spa->spa_props_lock);