svn commit: r240701 - head/sys/cam/scsi

Tijl Coosemans tijl at FreeBSD.org
Wed Sep 19 18:42:32 UTC 2012


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;


More information about the svn-src-all mailing list