diff options
| author | Peter Grehan <grehan@FreeBSD.org> | 2004-06-25 13:43:56 +0000 |
|---|---|---|
| committer | Peter Grehan <grehan@FreeBSD.org> | 2004-06-25 13:43:56 +0000 |
| commit | aa77148daf19f09c7f2c597aa7cd3a2ef7a2cc92 (patch) | |
| tree | d4eb8ded3ace38b20f97d09cbf362595fb1a830f /sys/dev/ofw | |
| parent | 40cdee9dabeb39b6d0ea97d66453a95dca1e1457 (diff) | |
Notes
Diffstat (limited to 'sys/dev/ofw')
| -rw-r--r-- | sys/dev/ofw/ofw_disk.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/ofw/ofw_disk.c b/sys/dev/ofw/ofw_disk.c index f3e143a731cb..24f7653ebf42 100644 --- a/sys/dev/ofw/ofw_disk.c +++ b/sys/dev/ofw/ofw_disk.c @@ -31,6 +31,7 @@ __FBSDID("$FreeBSD$"); #include <sys/param.h> #include <sys/systm.h> #include <sys/bio.h> +#include <sys/module.h> #include <sys/bus.h> #include <sys/conf.h> #include <sys/kernel.h> @@ -99,9 +100,10 @@ ofwd_strategy(struct bio *bp) return; } + bp->bio_resid = bp->bio_bcount; + r = OF_seek(sc->ofwd_instance, bp->bio_offset); if (r == -1) { - bp->bio_resid = bp->bio_bcount; device_printf(sc->ofwd_dev, "seek failed\n"); biofinish(bp, NULL, EIO); return; |
