diff options
author | 2010-05-26 12:17:35 +0000 | |
---|---|---|
committer | 2010-05-26 12:17:35 +0000 | |
commit | 4226f3d3d148e16e33848dddd8090c080a0ba40e (patch) | |
tree | d84ff251784fe23da3ecf0d5b3f01d55287f7961 | |
parent | make gcc4 lib sprintf/strcpy free. (diff) | |
download | wireguard-openbsd-4226f3d3d148e16e33848dddd8090c080a0ba40e.tar.xz wireguard-openbsd-4226f3d3d148e16e33848dddd8090c080a0ba40e.zip |
the addr field in read cap 16 is 8 bytes, not 4. pity, i had really big
disks for a few minutes there.
-rw-r--r-- | sys/dev/ata/atascsi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ata/atascsi.c b/sys/dev/ata/atascsi.c index f0ca3666503..ea122834b05 100644 --- a/sys/dev/ata/atascsi.c +++ b/sys/dev/ata/atascsi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: atascsi.c,v 1.84 2010/05/05 11:33:26 dlg Exp $ */ +/* $OpenBSD: atascsi.c,v 1.85 2010/05/26 12:17:35 dlg Exp $ */ /* * Copyright (c) 2007 David Gwynne <dlg@openbsd.org> @@ -884,7 +884,7 @@ atascsi_disk_capacity16(struct scsi_xfer *xs) bzero(&rcd, sizeof(rcd)); - _lto4b(ata_identify_blocks(&ap->ap_identify), rcd.addr); + _lto8b(ata_identify_blocks(&ap->ap_identify), rcd.addr); _lto4b(ata_identify_blocksize(&ap->ap_identify), rcd.length); rcd.logical_per_phys = ata_identify_block_l2p_exp(&ap->ap_identify); align = ata_identify_block_logical_align(&ap->ap_identify); |