summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorluozhengzheng <[email protected]>2016-10-21 02:54:02 +0800
committerBrian Behlendorf <[email protected]>2016-10-20 11:54:02 -0700
commit9523b15ac1881946a7a6b7a145c8e2bb622dc56c (patch)
tree0b76975b74a59290de7a4f0f6ac4594252d670b0
parent9d01680430377b39dc34aaaf6ef315c49b3943cc (diff)
Fix coverity defects: CID 153459
CID 153459: Null pointer dereferences (FORWARD_NULL) Accidentally introduced by #5159. Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: luozhengzheng <[email protected]> Closes #5310
-rw-r--r--module/zfs/zfs_fm.c2
1 files changed, 1 insertions, 1 deletions
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;
}