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

Pedro F. Giffuni pfg at FreeBSD.org
Sun Feb 7 01:09:40 UTC 2016


Author: pfg
Date: Sun Feb  7 01:09:38 2016
New Revision: 295359
URL: https://svnweb.freebsd.org/changeset/base/295359

Log:
  fdesc_setattr: unitialized pointer read
  
  CID:	1018688

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 01:04:47 2016	(r295358)
+++ head/sys/fs/fdescfs/fdesc_vnops.c	Sun Feb  7 01:09:38 2016	(r295359)
@@ -465,7 +465,7 @@ fdesc_setattr(ap)
 {
 	struct vattr *vap = ap->a_vap;
 	struct vnode *vp;
-	struct mount *mp;
+	struct mount *mp = NULL;
 	struct file *fp;
 	struct thread *td = curthread;
 	cap_rights_t rights;


More information about the svn-src-all mailing list