diff options
| author | Pedro F. Giffuni <pfg@FreeBSD.org> | 2016-04-26 14:51:58 +0000 |
|---|---|---|
| committer | Pedro F. Giffuni <pfg@FreeBSD.org> | 2016-04-26 14:51:58 +0000 |
| commit | 768f89e0788ab1ab7ea5df9d57082f53567007ec (patch) | |
| tree | 07ce8a4419c47fd4788bda5302443efe21db7ed0 /sys/boot/sparc64 | |
| parent | 96edd3f3eed053770433b515d6e8c1e839f3233e (diff) | |
Notes
Diffstat (limited to 'sys/boot/sparc64')
| -rw-r--r-- | sys/boot/sparc64/boot1/boot1.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/boot/sparc64/boot1/boot1.c b/sys/boot/sparc64/boot1/boot1.c index d0b738039b0f..4724ca165fd4 100644 --- a/sys/boot/sparc64/boot1/boot1.c +++ b/sys/boot/sparc64/boot1/boot1.c @@ -390,7 +390,7 @@ zbread(char *buf, off_t off, size_t bytes) p = buf; soff = VDEV_BOOT_OFFSET + off; - lb = (soff + bytes + DEV_BSIZE - 1) / DEV_BSIZE; + lb = howmany(soff + bytes, DEV_BSIZE); poff = soff; while (poff < soff + bytes) { nb = lb - poff / DEV_BSIZE; |
