svn commit: r295371 - head/sys/fs/fdescfs

Pedro F. Giffuni pfg at FreeBSD.org
Sun Feb 7 15:40:03 UTC 2016


Author: pfg
Date: Sun Feb  7 15:40:01 2016
New Revision: 295371
URL: https://svnweb.freebsd.org/changeset/base/295371

Log:
  Revert r295359:
  CID 1018688 is a false positive.
  
  The initialization is done by calling vn_start_write(... &mp, flags).
  mp is only an output parameter unless (flags & V_MNTREF), and fdesc
  doesn't put V_MNTREF in flags.
  
  Pointed out by:	bde

Modified:
  head/sys/fs/fdescfs/fdesc_vnops.c

Modified: head/sys/fs/fdescfs/fdesc_vnops.c
==============================================================================
--- head/sys/fs/fdescfs/fdesc_vnops.c	Sun Feb  7 15:36:16 2016	(r295370)
+++ head/sys/fs/fdescfs/fdesc_vnops.c	Sun Feb  7 15:40:01 2016	(r295371)
@@ -465,7 +465,7 @@ fdesc_setattr(ap)
 {
 	struct vattr *vap = ap->a_vap;
 	struct vnode *vp;
-	struct mount *mp = NULL;
+	struct mount *mp;
 	struct file *fp;
 	struct thread *td = curthread;
 	cap_rights_t rights;


More information about the svn-src-head mailing list