Date: Wed, 20 Jun 2012 14:29:02 +0000 (UTC) From: Alexander Motin <mav@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org Subject: svn commit: r237316 - stable/8/sys/cam/scsi Message-ID: <201206201429.q5KET25d047866@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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@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); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201206201429.q5KET25d047866>