Author: tijl Date: Wed Sep 19 18:42:31 2012 New Revision: 240701 URL: http://svn.freebsd.org/changeset/base/240701
Log: Fix a panic when trying to play invalid audio tracks. Modified: head/sys/cam/scsi/scsi_cd.c Modified: head/sys/cam/scsi/scsi_cd.c ============================================================================== --- head/sys/cam/scsi/scsi_cd.c Wed Sep 19 18:25:25 2012 (r240700) +++ head/sys/cam/scsi/scsi_cd.c Wed Sep 19 18:42:31 2012 (r240701) @@ -2080,6 +2080,7 @@ cdioctl(struct disk *dp, u_long cmd, voi || (st > (softc->toc.header.ending_track - softc->toc.header.starting_track))) { error = EINVAL; + cam_periph_unlock(periph); break; } sentry = &softc->toc.entries[st].addr; _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"