svn commit: r236689 - head/sys/cam/scsi

Kenneth D. Merry ken at FreeBSD.org
Wed Jun 6 17:04:57 UTC 2012


Author: ken
Date: Wed Jun  6 17:04:56 2012
New Revision: 236689
URL: http://svn.freebsd.org/changeset/base/236689

Log:
  Fix a memory leak in the kernel case in scsi_command_string().
  
  Submitted by:	Kashyap Desai <Kashyap.Desai at lsi.com>
  MFC after:	3 days

Modified:
  head/sys/cam/scsi/scsi_all.c

Modified: head/sys/cam/scsi/scsi_all.c
==============================================================================
--- head/sys/cam/scsi/scsi_all.c	Wed Jun  6 16:51:33 2012	(r236688)
+++ head/sys/cam/scsi/scsi_all.c	Wed Jun  6 17:04:56 2012	(r236689)
@@ -3059,6 +3059,10 @@ scsi_command_string(struct cam_device *d
 					    sizeof(cdb_str)));
 	}
 
+#ifdef _KERNEL
+	xpt_free_ccb((union ccb *)cgd);
+#endif
+
 	return(0);
 }
 


More information about the svn-src-all mailing list