HomeFreeBSD

in_pcblookup_hash: validate inp before return

Description

in_pcblookup_hash: validate inp before return

Post r335356 it is possible to have an inpcb on the hash lists that is
partially torn down. Validate before using. Also as a side effect of this
change the lock ordering issue between hash lock and inpcb no longer exists
allowing some simplification.

Reported by: pho@

Details

Provenance
mmacyAuthored on
Parents
rS335499: Final touches to 11.2-RELEASE release notes:
Branches
Unknown
Tags
Unknown