svn commit: r208800 - head/sys/cam/scsi
Andriy Gapon
avg at FreeBSD.org
Fri Jun 4 13:55:56 UTC 2010
Author: avg
Date: Fri Jun 4 13:55:55 2010
New Revision: 208800
URL: http://svn.freebsd.org/changeset/base/208800
Log:
scsi_cd: pass correct pointer to free()
Found with: Coverity Prevent(tm)
CID: 2986
MFC after: 4 days
Modified:
head/sys/cam/scsi/scsi_cd.c
Modified: head/sys/cam/scsi/scsi_cd.c
==============================================================================
--- head/sys/cam/scsi/scsi_cd.c Fri Jun 4 08:46:26 2010 (r208799)
+++ head/sys/cam/scsi/scsi_cd.c Fri Jun 4 13:55:55 2010 (r208800)
@@ -2528,7 +2528,7 @@ cdioctl(struct disk *dp, u_long cmd, voi
error = cdgetmode(periph, ¶ms, AUDIO_PAGE);
if (error) {
- free(¶ms.mode_buf, M_SCSICD);
+ free(params.mode_buf, M_SCSICD);
cam_periph_unlock(periph);
break;
}
More information about the svn-src-all
mailing list