svn commit: r196983 - head/sys/cam/scsi
Scott Long
scottl at FreeBSD.org
Tue Sep 8 16:09:29 UTC 2009
Author: scottl
Date: Tue Sep 8 16:09:28 2009
New Revision: 196983
URL: http://svn.freebsd.org/changeset/base/196983
Log:
Free the correct buffer in an error case.
Submitted by: phk
Modified:
head/sys/cam/scsi/scsi_cd.c
Modified: head/sys/cam/scsi/scsi_cd.c
==============================================================================
--- head/sys/cam/scsi/scsi_cd.c Tue Sep 8 15:57:03 2009 (r196982)
+++ head/sys/cam/scsi/scsi_cd.c Tue Sep 8 16:09:28 2009 (r196983)
@@ -2528,7 +2528,7 @@ cdioctl(struct disk *dp, u_long cmd, voi
error = cdgetmode(periph, ¶ms, AUDIO_PAGE);
if (error) {
- free(¶ms, M_SCSICD);
+ free(¶ms.mode_buf, M_SCSICD);
cam_periph_unlock(periph);
break;
}
More information about the svn-src-head
mailing list