HomeFreeBSD

Fix "vrefact: wrong use count 0" with DRM

Description

Fix "vrefact: wrong use count 0" with DRM

Bump the vnode use count, not its hold count. This fixes a panic triggered
by fstatat(..., AT_EMPTY_PATH) on DRM device nodes, which happens to be
what glxinfo(1) from Ubuntu Jammy is doing.

PR: kern/274538
Reviewed By: kib (earlier version), olce
Differential Revision: https://reviews.freebsd.org/D47391

(cherry picked from commit fc595a6b76642dfdfdb8e6f9b9bbc734e95fb59c)

Details

Provenance
traszAuthored on Nov 13 2024, 10:00 AM
markjCommitted on Fri, Jan 17, 6:47 PM
Reviewer
kib
Differential Revision
D47391: Fix "vrefact: wrong use count 0" with DRM
Parents
rGe2d4c5de27ac: UPDATING: Remove tarfs reference that slipped through
Branches
Unknown
Tags
Unknown