git: 8484cb490a7d - releng/15.1 - fdescfs: do not change vnode type on VOP_GETATTR()

From: Colin Percival <cperciva_at_FreeBSD.org>
Date: Thu, 14 May 2026 19:05:08 UTC
The branch releng/15.1 has been updated by cperciva:

URL: https://cgit.FreeBSD.org/src/commit/?id=8484cb490a7dafe3f5509c40fbb4d660665ac8b9

commit 8484cb490a7dafe3f5509c40fbb4d660665ac8b9
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2026-05-03 19:09:15 +0000
Commit:     Colin Percival <cperciva@FreeBSD.org>
CommitDate: 2026-05-14 19:04:22 +0000

    fdescfs: do not change vnode type on VOP_GETATTR()
    
    Approved by:    re (cperciva)
    PR:     294768
    
    (cherry picked from commit fbecfc4aa028964f972a0457809aa041d415f61b)
    (cherry picked from commit 5af938fb03d004ef97621f4c9319446f2fb8f77c)
---
 sys/fs/fdescfs/fdesc_vnops.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/sys/fs/fdescfs/fdesc_vnops.c b/sys/fs/fdescfs/fdesc_vnops.c
index 58a22b8bdc50..05630ef5e48c 100644
--- a/sys/fs/fdescfs/fdesc_vnops.c
+++ b/sys/fs/fdescfs/fdesc_vnops.c
@@ -469,7 +469,6 @@ fdesc_getattr(struct vop_getattr_args *ap)
 		break;
 	}
 
-	vp->v_type = vap->va_type;
 	return (0);
 }