svn commit: r302058 - head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs

Alan Somers asomers at FreeBSD.org
Tue Jun 21 15:27:18 UTC 2016


Author: asomers
Date: Tue Jun 21 15:27:16 2016
New Revision: 302058
URL: https://svnweb.freebsd.org/changeset/base/302058

Log:
  Fix uninitialized variable from r300881
  
  sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_geom.c
  	Initialize needs_update in vdev_geom_set_physpath
  
  PR:		210409
  Reported by:	kp
  Reviewed by:	kp
  Approved by:	re (hrs)
  MFC after:	4 weeks
  X-MFC-With:	300881
  Sponsored by:	Spectra Logic Corp

Modified:
  head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_geom.c

Modified: head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_geom.c
==============================================================================
--- head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_geom.c	Tue Jun 21 15:26:59 2016	(r302057)
+++ head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_geom.c	Tue Jun 21 15:27:16 2016	(r302058)
@@ -87,7 +87,7 @@ vdev_geom_set_rotation_rate(vdev_t *vd, 
 static void
 vdev_geom_set_physpath(struct g_consumer *cp, boolean_t do_null_update)
 {
-	boolean_t needs_update;
+	boolean_t needs_update = B_FALSE;
 	vdev_t *vd;
 	char *physpath;
 	int error, physpath_len;


More information about the svn-src-all mailing list