diff --git a/module/zfs/zfs_fm.c b/module/zfs/zfs_fm.c index 5b6bea7aef..15dbdc2a0b 100644 --- a/module/zfs/zfs_fm.c +++ b/module/zfs/zfs_fm.c @@ -219,7 +219,7 @@ zfs_ereport_start(nvlist_t **ereport_out, nvlist_t **detector_out, } if ((strcmp(subclass, FM_EREPORT_ZFS_DELAY) == 0) && - !zio->io_timestamp) { + (zio != NULL) && (!zio->io_timestamp)) { /* Ignore bogus delay events */ return; }