Skip to content

Commit

Permalink
Fix coverity defects: CID 153459
Browse files Browse the repository at this point in the history
CID 153459: Null pointer dereferences (FORWARD_NULL)
Accidentally introduced by #5159.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: luozhengzheng <luo.zhengzheng@zte.com.cn>
Closes #5310
  • Loading branch information
luozhengzheng authored and behlendorf committed Oct 20, 2016
1 parent 9d01680 commit 9523b15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion module/zfs/zfs_fm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 9523b15

Please sign in to comment.