svn commit: r299631 - stable/9/sys/dev/sym

Garrett Cooper ngie at FreeBSD.org
Fri May 13 08:59:50 UTC 2016


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,


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