Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 May 2016 08:59:49 +0000 (UTC)
From:      Garrett Cooper <ngie@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: r299631 - stable/9/sys/dev/sym
Message-ID:  <201605130859.u4D8xndU072042@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ngie
Date: Fri May 13 08:59:49 2016
New Revision: 299631
URL: https://svnweb.freebsd.org/changeset/base/299631

Log:
  MFstable/10 r299630:
  
  MFC r298340:
  r298340 (by cem):
  
  sym(4): Don't double-free 'sim' in failure case
  
  CID:		1006106

Modified:
  stable/9/sys/dev/sym/sym_hipd.c
Directory Properties:
  stable/9/   (props changed)
  stable/9/sys/   (props changed)
  stable/9/sys/dev/   (props changed)

Modified: stable/9/sys/dev/sym/sym_hipd.c
==============================================================================
--- stable/9/sys/dev/sym/sym_hipd.c	Fri May 13 08:58:49 2016	(r299630)
+++ stable/9/sys/dev/sym/sym_hipd.c	Fri May 13 08:59:49 2016	(r299631)
@@ -8891,6 +8891,7 @@ static int sym_cam_attach(hcb_p np)
 	if (xpt_bus_register(sim, np->device, 0) != CAM_SUCCESS)
 		goto fail;
 	np->sim = sim;
+	sim = NULL;
 
 	if (xpt_create_path(&path, NULL,
 			    cam_sim_path(np->sim), CAM_TARGET_WILDCARD,



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201605130859.u4D8xndU072042>