Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Mar 2018 14:05:46 +0000 (UTC)
From:      Hajimu UMEMOTO <ume@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r331055 - stable/11/sys/fs/fdescfs
Message-ID:  <201803161405.w2GE5knH028874@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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,



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201803161405.w2GE5knH028874>