Date: Sun, 2 Feb 2014 00:34:32 +0000 (UTC) From: Alexander Motin <mav@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org Subject: svn commit: r261392 - stable/9/sys/geom/multipath Message-ID: <201402020034.s120YWx6052972@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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));
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201402020034.s120YWx6052972>