svn commit: r298977 - head/sys/cam

Scott Long scottl at FreeBSD.org
Tue May 3 14:30:28 UTC 2016


Author: scottl
Date: Tue May  3 14:30:26 2016
New Revision: 298977
URL: https://svnweb.freebsd.org/changeset/base/298977

Log:
  Fix a memory leak in the devctl notify code.
  
  Submitted by:	markj
  MFC after:	asap

Modified:
  head/sys/cam/cam_periph.c

Modified: head/sys/cam/cam_periph.c
==============================================================================
--- head/sys/cam/cam_periph.c	Tue May  3 11:49:29 2016	(r298976)
+++ head/sys/cam/cam_periph.c	Tue May  3 14:30:26 2016	(r298977)
@@ -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);


More information about the svn-src-head mailing list