diff options
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/zed/agents/fmd_serd.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cmd/zed/agents/fmd_serd.c b/cmd/zed/agents/fmd_serd.c index 6143c5d7e..043552862 100644 --- a/cmd/zed/agents/fmd_serd.c +++ b/cmd/zed/agents/fmd_serd.c @@ -300,6 +300,9 @@ fmd_serd_eng_gc(fmd_serd_eng_t *sgp) return; /* no garbage collection needed if empty or fired */ sep = list_head(&sgp->sg_list); + if (sep == NULL) + return; + hrt = sep->se_hrt - sgp->sg_t; for (sep = list_head(&sgp->sg_list); sep != NULL; sep = nep) { |