aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--cmd/zed/agents/zfs_mod.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/zed/agents/zfs_mod.c b/cmd/zed/agents/zfs_mod.c
index 7ebf708ae..8f2f60bbf 100644
--- a/cmd/zed/agents/zfs_mod.c
+++ b/cmd/zed/agents/zfs_mod.c
@@ -264,7 +264,7 @@ zfs_process_add(zpool_handle_t *zhp, nvlist_t *vdev, boolean_t labeled)
* vdev_id alias rule for using scsi_debug devices (FMA automated
* testing)
*/
- if (strcmp("scsidebug", physpath) == 0)
+ if (physpath != NULL && strcmp("scsidebug", physpath) == 0)
is_sd = 1;
/*