svn commit: r299630 - stable/10/sys/dev/sym

Garrett Cooper ngie at FreeBSD.org
Fri May 13 08:58:51 UTC 2016


Author: ngie
Date: Fri May 13 08:58:49 2016
New Revision: 299630
URL: https://svnweb.freebsd.org/changeset/base/299630

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

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

Modified: stable/10/sys/dev/sym/sym_hipd.c
==============================================================================
--- stable/10/sys/dev/sym/sym_hipd.c	Fri May 13 08:54:08 2016	(r299629)
+++ stable/10/sys/dev/sym/sym_hipd.c	Fri May 13 08:58:49 2016	(r299630)
@@ -8894,6 +8894,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,


More information about the svn-src-stable-10 mailing list