From 9523b15ac1881946a7a6b7a145c8e2bb622dc56c Mon Sep 17 00:00:00 2001 From: luozhengzheng Date: Fri, 21 Oct 2016 02:54:02 +0800 Subject: [PATCH] Fix coverity defects: CID 153459 CID 153459: Null pointer dereferences (FORWARD_NULL) Accidentally introduced by #5159. Reviewed-by: Brian Behlendorf Signed-off-by: luozhengzheng Closes #5310 --- module/zfs/zfs_fm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/zfs/zfs_fm.c b/module/zfs/zfs_fm.c index 5b6bea7ae..15dbdc2a0 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; }