From owner-svn-src-all@FreeBSD.ORG Tue Feb 26 21:37:13 2013 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 2F9793D7; Tue, 26 Feb 2013 21:37:13 +0000 (UTC) (envelope-from mjacob@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id 176EB206; Tue, 26 Feb 2013 21:37:13 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.5/8.14.5) with ESMTP id r1QLbC9q072766; Tue, 26 Feb 2013 21:37:12 GMT (envelope-from mjacob@svn.freebsd.org) Received: (from mjacob@localhost) by svn.freebsd.org (8.14.5/8.14.5/Submit) id r1QLbCw2072765; Tue, 26 Feb 2013 21:37:12 GMT (envelope-from mjacob@svn.freebsd.org) Message-Id: <201302262137.r1QLbCw2072765@svn.freebsd.org> From: Matt Jacob Date: Tue, 26 Feb 2013 21:37:12 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r247356 - head/sys/dev/isp X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Feb 2013 21:37:13 -0000 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) {