svn commit: r237315 - stable/9/sys/cam/scsi

Alexander Motin mav at FreeBSD.org
Wed Jun 20 14:27:56 UTC 2012


Author: mav
Date: Wed Jun 20 14:27:55 2012
New Revision: 237315
URL: http://svn.freebsd.org/changeset/base/237315

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/9/sys/cam/scsi/scsi_all.c
Directory Properties:
  stable/9/sys/   (props changed)

Modified: stable/9/sys/cam/scsi/scsi_all.c
==============================================================================
--- stable/9/sys/cam/scsi/scsi_all.c	Wed Jun 20 14:24:13 2012	(r237314)
+++ stable/9/sys/cam/scsi/scsi_all.c	Wed Jun 20 14:27:55 2012	(r237315)
@@ -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-stable-9 mailing list