HomeFreeBSD

Fix VNIC enumeration after r294993 and r294990

Description

Fix VNIC enumeration after r294993 and r294990

ofw_bus_get_node() must be tested against negative values since
missing parent bus method will result in calling the default method
which simply returns (-1): sys/dev/ofw/ofw_bus_if.m
This was lost in the review process.

Obtained from: Semihalf
Sponsored by: Cavium

Details

Provenance
zbbAuthored on
Parents
rS294997: MFC r281060, r294060, r294291, r294493, r294284:
Branches
Unknown
Tags
Unknown