1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-24 11:29:10 +00:00

Fix a panic when trying to play invalid audio tracks.

This commit is contained in:
Tijl Coosemans 2012-09-19 18:42:31 +00:00
parent 7e2fd60604
commit 303d68bc4f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=240701

View File

@ -2080,6 +2080,7 @@ cdioctl(struct disk *dp, u_long cmd, void *addr, int flag, struct thread *td)
|| (st > (softc->toc.header.ending_track -
softc->toc.header.starting_track))) {
error = EINVAL;
cam_periph_unlock(periph);
break;
}
sentry = &softc->toc.entries[st].addr;