diff options
author | avg <avg@FreeBSD.org> | 2010-06-04 13:55:55 +0000 |
---|---|---|
committer | avg <avg@FreeBSD.org> | 2010-06-04 13:55:55 +0000 |
commit | 0dfde2cbbda6697cc26ee4d46bcff468f59f08c8 (patch) | |
tree | a7fd5afe78c00e237c908e7065b392c7e83c18f1 /sys/cam/scsi | |
parent | aa2a5c4ca5ad07c220f090ef4517569337fa362b (diff) | |
download | FreeBSD-src-0dfde2cbbda6697cc26ee4d46bcff468f59f08c8.zip FreeBSD-src-0dfde2cbbda6697cc26ee4d46bcff468f59f08c8.tar.gz |
scsi_cd: pass correct pointer to free()
Found with: Coverity Prevent(tm)
CID: 2986
MFC after: 4 days
Diffstat (limited to 'sys/cam/scsi')
-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 d09d129..76ef3bd 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.mode_buf, M_SCSICD); + free(params.mode_buf, M_SCSICD); cam_periph_unlock(periph); break; } |