Date: Fri, 4 Jun 2010 13:55:55 +0000 (UTC) From: Andriy Gapon <avg@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r208800 - head/sys/cam/scsi Message-ID: <201006041355.o54DttWq020017@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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; }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201006041355.o54DttWq020017>