scsi_cd: pass correct pointer to free()

Found with:	Coverity Prevent(tm)
CID:		2986
MFC after:	4 days
This commit is contained in:
Andriy Gapon 2010-06-04 13:55:55 +00:00
parent 22fdc015e2
commit 1a7b0de575
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=208800

View File

@ -2528,7 +2528,7 @@ cdioctl(struct disk *dp, u_long cmd, void *addr, int flag, struct thread *td)
error = cdgetmode(periph, &params, AUDIO_PAGE);
if (error) {
free(&params.mode_buf, M_SCSICD);
free(params.mode_buf, M_SCSICD);
cam_periph_unlock(periph);
break;
}