Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Sep 2012 13:34:10 +0000 (UTC)
From:      Tijl Coosemans <tijl@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org
Subject:   svn commit: r240920 - stable/8/sys/cam/scsi
Message-ID:  <201209251334.q8PDYA3J037830@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: tijl
Date: Tue Sep 25 13:34:09 2012
New Revision: 240920
URL: http://svn.freebsd.org/changeset/base/240920

Log:
  MFC r240701:
  
  Fix a panic when trying to play invalid audio tracks.
  
  PR:		kern/167340
  Reported by:	Michael L. Semon <mlsemon35 gmail com>

Modified:
  stable/8/sys/cam/scsi/scsi_cd.c
Directory Properties:
  stable/8/sys/   (props changed)
  stable/8/sys/cam/   (props changed)

Modified: stable/8/sys/cam/scsi/scsi_cd.c
==============================================================================
--- stable/8/sys/cam/scsi/scsi_cd.c	Tue Sep 25 13:32:05 2012	(r240919)
+++ stable/8/sys/cam/scsi/scsi_cd.c	Tue Sep 25 13:34:09 2012	(r240920)
@@ -1962,6 +1962,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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201209251334.q8PDYA3J037830>