9317 FMD crashes with zero-length allocation

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

Information
Andy Fiddaman
illumos-gate
master
9317
62236e1...
Reviewers
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.

C Fraire
Igor Kozhukhov
Toomas Soome
Andy Fiddaman
Review request changed

Status: Closed (submitted)

Loading...