svn commit: r331055 - stable/11/sys/fs/fdescfs

Hajimu UMEMOTO ume at FreeBSD.org
Fri Mar 16 14:05:46 UTC 2018


Author: ume
Date: Fri Mar 16 14:05:45 2018
New Revision: 331055
URL: https://svnweb.freebsd.org/changeset/base/331055

Log:
  MFC r330681: Fix Bad file descriptor error.

Modified:
  stable/11/sys/fs/fdescfs/fdesc_vnops.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/fs/fdescfs/fdesc_vnops.c
==============================================================================
--- stable/11/sys/fs/fdescfs/fdesc_vnops.c	Fri Mar 16 13:33:42 2018	(r331054)
+++ stable/11/sys/fs/fdescfs/fdesc_vnops.c	Fri Mar 16 14:05:45 2018	(r331055)
@@ -415,6 +415,8 @@ fdesc_pathconf(struct vop_pathconf_args *ap)
 			*ap->a_retval = 1;
 		return (0);
 	default:
+		if (VTOFDESC(vp)->fd_type == Froot)
+			return (vop_stdpathconf(ap));
 		vref(vp);
 		VOP_UNLOCK(vp, 0);
 		error = kern_fpathconf(curthread, VTOFDESC(vp)->fd_fd,


More information about the svn-src-stable mailing list