Page MenuHomeFreeBSD

Don't assume all children of a nexus are ports.
ClosedPublic

Authored by jhb on Feb 28 2019, 12:53 AM.
Tags
None
Referenced Files
Unknown Object (File)
Dec 20 2023, 3:28 AM
Unknown Object (File)
Nov 24 2023, 9:52 AM
Unknown Object (File)
Nov 21 2023, 12:34 PM
Unknown Object (File)
Aug 4 2023, 7:15 PM
Unknown Object (File)
Jul 30 2023, 3:31 AM
Unknown Object (File)
Jun 26 2023, 11:09 PM
Unknown Object (File)
Jun 15 2023, 7:10 PM
Unknown Object (File)
May 29 2023, 9:23 AM
Subscribers

Details

Summary

Specifically, ccr(4) devices are also children of cxgbe nexus devices.
Rather than making assumptions about the child device's softc, walk the
list of ports from the nexus' softc to determine if a child is a port
in t4_child_location_str(). This fixes a panic when detaching a ccr
device.

Test Plan
  • kldunload of ccr currently panicks
  • after change, kldunload no longer panicks, and no location info shows up for ccr0 in 'devinfo -v'

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable