Fix coverity defects: CID 153459

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
This commit is contained in:
luozhengzheng 2016-10-21 02:54:02 +08:00 committed by Brian Behlendorf
parent 9d01680430
commit 9523b15ac1
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}