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);
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to