Author: mav
Date: Wed Jun 20 14:29:01 2012
New Revision: 237316
URL: http://svn.freebsd.org/changeset/base/237316
Log:
  MFC r236689 (by ken):
  Fix a memory leak in the kernel case in scsi_command_string().
  
  Submitted by:   Kashyap Desai <kashyap.de...@lsi.com>

Modified:
  stable/8/sys/cam/scsi/scsi_all.c
Directory Properties:
  stable/8/sys/   (props changed)

Modified: stable/8/sys/cam/scsi/scsi_all.c
==============================================================================
--- stable/8/sys/cam/scsi/scsi_all.c    Wed Jun 20 14:27:55 2012        
(r237315)
+++ stable/8/sys/cam/scsi/scsi_all.c    Wed Jun 20 14:29:01 2012        
(r237316)
@@ -3037,6 +3037,10 @@ scsi_command_string(struct cam_device *d
                                            sizeof(cdb_str)));
        }
 
+#ifdef _KERNEL
+       xpt_free_ccb((union ccb *)cgd);
+#endif
+
        return(0);
 }
 
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to