HomeFreeBSD

fdesc_lookup(): no need to vhold the dvp vnode

Description

fdesc_lookup(): no need to vhold the dvp vnode

It is already referenced by the VOP_LOOKUP() caller, otherwise vdrop()
after vn_lock() is invalid anyway.

Reviewed by: markj
Tested by: pho
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D39207

Details

Provenance
kibAuthored on Mar 22 2023, 1:36 PM
Reviewer
markj
Differential Revision
D39207: Some fdescfs fixes
Parents
rG51b8ffb95c4f: fdesc_allocvp(): fix potential use after free
Branches
Unknown
Tags
Unknown