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

Reply via email to