diff options
author | sos <sos@FreeBSD.org> | 2000-02-08 16:39:11 +0000 |
---|---|---|
committer | sos <sos@FreeBSD.org> | 2000-02-08 16:39:11 +0000 |
commit | 28baf6d30b10a5f3a2a16eb924019291559697cd (patch) | |
tree | c0f24cce92f9a111dcf2600e376fd622adb49de9 /sys/dev | |
parent | a5ec2c9c35fa46cc6b3f110b2123d2ebf584eb6d (diff) | |
download | FreeBSD-src-28baf6d30b10a5f3a2a16eb924019291559697cd.zip FreeBSD-src-28baf6d30b10a5f3a2a16eb924019291559697cd.tar.gz |
The bde script has a bug, I used a patch from it verbatim, bad idea....
Fixed...
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/ata/atapi-fd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ata/atapi-fd.c b/sys/dev/ata/atapi-fd.c index 1ad955e..df30c26 100644 --- a/sys/dev/ata/atapi-fd.c +++ b/sys/dev/ata/atapi-fd.c @@ -304,8 +304,8 @@ afd_start(struct afd_softc *fdp) return; } - lba = bp->b_pblkno / (fdp->cap.sector_size / DEV_BSIZE); - count = bp->b_bcount; + lba = bp->b_pblkno; + count = bp->b_bcount / fdp->cap.sector_size; data_ptr = bp->b_data; bp->b_resid = 0; |