Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Sep 2012 13:32:05 +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-9@freebsd.org
Subject:   svn commit: r240919 - stable/9/sys/cam/scsi
Message-ID:  <201209251332.q8PDW57L037503@svn.freebsd.org>

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

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/9/sys/cam/scsi/scsi_cd.c
Directory Properties:
  stable/9/sys/   (props changed)

Modified: stable/9/sys/cam/scsi/scsi_cd.c
==============================================================================
--- stable/9/sys/cam/scsi/scsi_cd.c	Tue Sep 25 12:45:41 2012	(r240918)
+++ stable/9/sys/cam/scsi/scsi_cd.c	Tue Sep 25 13:32:05 2012	(r240919)
@@ -1990,6 +1990,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?201209251332.q8PDW57L037503>