Fix the transfer size calculation.
This commit is contained in:
parent
5c0d1ab990
commit
ba41a3d37e
@ -328,7 +328,7 @@ afd_start(struct ata_device *atadev)
|
||||
}
|
||||
|
||||
lba = bp->bio_pblkno;
|
||||
count = bp->bio_bcount / fdp->cap.sector_size;
|
||||
count = min(bp->bio_bcount, fdp->dev->si_iosize_max) / fdp->cap.sector_size;
|
||||
data_ptr = bp->bio_data;
|
||||
bp->bio_resid = bp->bio_bcount;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user