diff options
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/ata/atapi-cd.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/dev/ata/atapi-cd.c b/sys/dev/ata/atapi-cd.c index 50da005..1e835b9 100644 --- a/sys/dev/ata/atapi-cd.c +++ b/sys/dev/ata/atapi-cd.c @@ -1000,6 +1000,11 @@ acd_geom_start(struct bio *bp) return; } + if (bp->bio_cmd == BIO_READ && cdp->disk_size == -1) { + g_io_deliver(bp, EIO); + return; + } + /* GEOM classes must do their own request limiting */ if (bp->bio_length <= cdp->iomax) { mtx_lock(&cdp->queue_mtx); |