Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Feb 2013 21:37:12 +0000 (UTC)
From:      Matt Jacob <mjacob@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r247356 - head/sys/dev/isp
Message-ID:  <201302262137.r1QLbCw2072765@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mjacob
Date: Tue Feb 26 21:37:12 2013
New Revision: 247356
URL: http://svnweb.freebsd.org/changeset/base/247356

Log:
  Remove redundant xpt_alloc_ccb in isp_target_thread that was causing leakage.
  
  Pointed out by:	Sascha Wildner of DragonFly BSD
  MFC after:	1 week

Modified:
  head/sys/dev/isp/isp_freebsd.c

Modified: head/sys/dev/isp/isp_freebsd.c
==============================================================================
--- head/sys/dev/isp/isp_freebsd.c	Tue Feb 26 21:25:17 2013	(r247355)
+++ head/sys/dev/isp/isp_freebsd.c	Tue Feb 26 21:37:12 2013	(r247356)
@@ -4140,8 +4140,6 @@ isp_target_thread(ispsoftc_t *isp, int c
 		return;
 	}
 
-	ccb = xpt_alloc_ccb();
-
 	ISP_LOCK(isp);
 	status = cam_periph_alloc(isptargctor, NULL, isptargdtor, isptargstart, "isptarg", CAM_PERIPH_BIO, wpath, NULL, 0, softc);
 	if (status != CAM_REQ_CMP) {



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