svn commit: r188868 - head/sys/dev/ata

Marcel Moolenaar marcel at FreeBSD.org
Fri Feb 20 15:01:28 PST 2009


Author: marcel
Date: Fri Feb 20 23:01:27 2009
New Revision: 188868
URL: http://svn.freebsd.org/changeset/base/188868

Log:
  Don't read the TOC for DIOCGPROVIDERALIAS. This causes the
  acd code to create new provider (?), but not from an expected
  context, which results in a panic (GEOM topology not held).

Modified:
  head/sys/dev/ata/atapi-cd.c

Modified: head/sys/dev/ata/atapi-cd.c
==============================================================================
--- head/sys/dev/ata/atapi-cd.c	Fri Feb 20 22:46:24 2009	(r188867)
+++ head/sys/dev/ata/atapi-cd.c	Fri Feb 20 23:01:27 2009	(r188868)
@@ -219,7 +219,10 @@ acd_geom_ioctl(struct g_provider *pp, u_
 	case CDIOCRESET:
 	    acd_test_ready(dev);
 	    break;
-	   
+
+	case DIOCGPROVIDERALIAS:
+	    break;
+
 	default:
 	    acd_read_toc(dev);
 	    acd_prevent_allow(dev, 1);


More information about the svn-src-head mailing list