diff options
author | 2009-10-21 20:32:02 +0000 | |
---|---|---|
committer | 2009-10-21 20:32:02 +0000 | |
commit | a1e349ad5c3bd09d0afb06c068e723a91e6a26bd (patch) | |
tree | 7f99dd58169c88ad6a37ec26c26d4b5543df2e66 | |
parent | Don't try to unsuspend a client if it isn't suspended. (diff) | |
download | wireguard-openbsd-a1e349ad5c3bd09d0afb06c068e723a91e6a26bd.tar.xz wireguard-openbsd-a1e349ad5c3bd09d0afb06c068e723a91e6a26bd.zip |
use _lto8b to calculate 64 bit address. Fixes issue ckuethe saw at 2TB
boundary.
miod "go for it."
-rw-r--r-- | sys/scsi/sd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/scsi/sd.c b/sys/scsi/sd.c index 45e25fec19f..ac3b6811de4 100644 --- a/sys/scsi/sd.c +++ b/sys/scsi/sd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sd.c,v 1.159 2009/10/13 19:33:19 pirofti Exp $ */ +/* $OpenBSD: sd.c,v 1.160 2009/10/21 20:32:02 marco Exp $ */ /* $NetBSD: sd.c,v 1.111 1997/04/02 02:29:41 mycroft Exp $ */ /*- @@ -655,7 +655,7 @@ sd_cmd_rw16(struct scsi_xfer *xs, int read, daddr64_t blkno, u_int nblks) struct scsi_rw_16 *cmd = (struct scsi_rw_16 *)xs->cmd; cmd->opcode = read ? READ_16 : WRITE_16; - _lto4b(blkno, cmd->addr); + _lto8b(blkno, cmd->addr); _lto4b(nblks, cmd->length); xs->cmdlen = sizeof(*cmd); |