9317 FMD crashes with zero-length allocation

Review Request #986 — Created March 20, 2018 and submitted

citrus
illumos-gate
master
9317
62236e1...
general
9317 FMD crashes with zero-length allocation

The original bug reporter has tested and confirmed that this fix stops fmd from crashing.

When there are no PHYs, there is nothing to add to the nvlist so the function should just return with a success status. See also the prior three functions in this file which are other topology parsers very similar to this one - they all return with success if the number of PHYs is zero.

seeemef@mac.com
  1. Ship It!
  2. 
      
igork
  1. Ship It!
  2. 
      
tsoome
  1. Ship It!
  2. 
      
citrus
Review request changed

Status: Closed (submitted)

Loading...