diff options
author | scottl <scottl@FreeBSD.org> | 2009-09-08 16:09:28 +0000 |
---|---|---|
committer | scottl <scottl@FreeBSD.org> | 2009-09-08 16:09:28 +0000 |
commit | d54317171d2bd5c377b27abbd47a753849e736ab (patch) | |
tree | 308259e58e6e34c2137a3bd4d28c4cd1d520b131 /sys/cam | |
parent | 8433cf06b241f47695d82d6440cd01f279de0d04 (diff) | |
download | FreeBSD-src-d54317171d2bd5c377b27abbd47a753849e736ab.zip FreeBSD-src-d54317171d2bd5c377b27abbd47a753849e736ab.tar.gz |
Free the correct buffer in an error case.
Submitted by: phk
Diffstat (limited to 'sys/cam')
-rw-r--r-- | sys/cam/scsi/scsi_cd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/cam/scsi/scsi_cd.c b/sys/cam/scsi/scsi_cd.c index 287c6b6..52f7311 100644 --- a/sys/cam/scsi/scsi_cd.c +++ b/sys/cam/scsi/scsi_cd.c @@ -2528,7 +2528,7 @@ cdioctl(struct disk *dp, u_long cmd, void *addr, int flag, struct thread *td) error = cdgetmode(periph, ¶ms, AUDIO_PAGE); if (error) { - free(¶ms, M_SCSICD); + free(¶ms.mode_buf, M_SCSICD); cam_periph_unlock(periph); break; } |