Date: Fri, 20 Feb 2009 23:01:27 +0000 (UTC) From: Marcel Moolenaar <marcel@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r188868 - head/sys/dev/ata Message-ID: <200902202301.n1KN1R93041379@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200902202301.n1KN1R93041379>