svn commit: r237316 - stable/8/sys/cam/scsi

Alexander Motin mav at FreeBSD.org
Wed Jun 20 14:29:02 UTC 2012


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.Desai at 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);
 }
 


More information about the svn-src-all mailing list