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
This commit is contained in:
asomers 2016-06-21 15:27:16 +00:00
parent b25a6b9e57
commit 8abfab9cb0

View File

@ -87,7 +87,7 @@ vdev_geom_set_rotation_rate(vdev_t *vd, struct g_consumer *cp)
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;