Date: Wed, 9 Jun 2010 09:51:16 +0000 (UTC) From: Andriy Gapon <avg@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-7@freebsd.org Subject: svn commit: r208940 - stable/7/sys/cam/scsi Message-ID: <201006090951.o599pGmn083309@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: avg Date: Wed Jun 9 09:51:16 2010 New Revision: 208940 URL: http://svn.freebsd.org/changeset/base/208940 Log: MFC r208800: scsi_cd: pass correct pointer to free() Modified: stable/7/sys/cam/scsi/scsi_cd.c Directory Properties: stable/7/sys/ (props changed) stable/7/sys/cddl/contrib/opensolaris/ (props changed) stable/7/sys/contrib/dev/acpica/ (props changed) stable/7/sys/contrib/pf/ (props changed) Modified: stable/7/sys/cam/scsi/scsi_cd.c ============================================================================== --- stable/7/sys/cam/scsi/scsi_cd.c Wed Jun 9 09:44:05 2010 (r208939) +++ stable/7/sys/cam/scsi/scsi_cd.c Wed Jun 9 09:51:16 2010 (r208940) @@ -2523,7 +2523,7 @@ cdioctl(struct disk *dp, u_long cmd, voi error = cdgetmode(periph, ¶ms, AUDIO_PAGE); if (error) { - free(¶ms, 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?201006090951.o599pGmn083309>