zed: Fix zed ASSERT on slot power cycle
commit8c81c0b05d63e69473d859870f7a6e32e46b0410
authorTony Hutter <hutter2@llnl.gov>
Fri, 21 Jul 2023 18:46:58 +0000 (21 11:46 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 21 Jul 2023 23:35:12 +0000 (21 16:35 -0700)
treed47e79fa9422cdc084432a8044b0397eb3b4e295
parentb221f4394312ff23550fa60624e3f38bed2a1a1e
zed: Fix zed ASSERT on slot power cycle

We would see zed assert on one of our systems if we powered off a
slot.  Further examination showed zfs_retire_recv() was reporting
a GUID of 0, which in turn would return a NULL nvlist.  Add
in a check for a zero GUID.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Tony Hutter <hutter2@llnl.gov>
Closes #15084
cmd/zed/agents/zfs_retire.c