Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 May 2016 12:03:27 +0000 (UTC)
From:      Scott Long <scottl@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r299531 - stable/10/sys/cam
Message-ID:  <201605121203.u4CC3RCv090309@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: scottl
Date: Thu May 12 12:03:27 2016
New Revision: 299531
URL: https://svnweb.freebsd.org/changeset/base/299531

Log:
  MFC r298977: Fix a memory leak introduced with the devctl intergration of
  cam_periph

Modified:
  stable/10/sys/cam/cam_periph.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/cam/cam_periph.c
==============================================================================
--- stable/10/sys/cam/cam_periph.c	Thu May 12 11:38:28 2016	(r299530)
+++ stable/10/sys/cam/cam_periph.c	Thu May 12 12:03:27 2016	(r299531)
@@ -1876,6 +1876,7 @@ cam_periph_devctl_notify(union ccb *ccb)
 
 		if (cgd->ccb_h.status == CAM_REQ_CMP)
 			sbuf_bcat(&sb, cgd->serial_num, cgd->serial_num_len);
+		xpt_free_ccb((union ccb *)cgd);
 	}
 	sbuf_printf(&sb, "\" ");
 	sbuf_printf(&sb, "cam_status=\"0x%x\" ", ccb->ccb_h.status);



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