diff options
| author | Kyle Evans <kevans@FreeBSD.org> | 2022-09-08 00:35:06 +0000 |
|---|---|---|
| committer | Kyle Evans <kevans@FreeBSD.org> | 2022-09-08 15:05:08 +0000 |
| commit | 72291cee075d9ef1a608b2a67762b44e024cc0d4 (patch) | |
| tree | 55e651d2773c77a3a374d0da254c20638a4fd713 /stand | |
| parent | 7d90ce7cae63a8121da0acc3ce36a713a98d6033 (diff) | |
Diffstat (limited to 'stand')
| -rw-r--r-- | stand/i386/libi386/biosdisk.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/stand/i386/libi386/biosdisk.c b/stand/i386/libi386/biosdisk.c index 3539d206d011..1b6134ab2e6b 100644 --- a/stand/i386/libi386/biosdisk.c +++ b/stand/i386/libi386/biosdisk.c @@ -1032,7 +1032,8 @@ bd_realstrategy(void *devdata, int rw, daddr_t dblk, size_t size, d_offset = dev->d_offset; } if (disk_blocks == 0) - disk_blocks = bd->bd_sectors - d_offset; + disk_blocks = bd->bd_sectors * (bd->bd_sectorsize / + BIOSDISK_SECSIZE) - d_offset; /* Validate source block address. */ if (dblk < d_offset || dblk >= d_offset + disk_blocks) |
