svn commit: r261392 - stable/9/sys/geom/multipath
Alexander Motin
mav at FreeBSD.org
Sun Feb 2 00:34:32 UTC 2014
Author: mav
Date: Sun Feb 2 00:34:32 2014
New Revision: 261392
URL: http://svnweb.freebsd.org/changeset/base/261392
Log:
MFC r260883:
Remove unneeded and dangerous assignment. It would probably cause NULL
refererence panic if compiler not optimize it out.
Modified:
stable/9/sys/geom/multipath/g_multipath.c
Directory Properties:
stable/9/ (props changed)
stable/9/sys/ (props changed)
Modified: stable/9/sys/geom/multipath/g_multipath.c
==============================================================================
--- stable/9/sys/geom/multipath/g_multipath.c Sun Feb 2 00:33:17 2014 (r261391)
+++ stable/9/sys/geom/multipath/g_multipath.c Sun Feb 2 00:34:32 2014 (r261392)
@@ -984,7 +984,6 @@ g_multipath_ctl_create(struct gctl_req *
gctl_error(req, "Device %s already exist", mpname);
return;
}
- sc = gp->softc;
memset(&md, 0, sizeof(md));
strlcpy(md.md_magic, G_MULTIPATH_MAGIC, sizeof(md.md_magic));
More information about the svn-src-all
mailing list