diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2005-06-02 23:49:29 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2005-06-02 23:49:29 +0000 |
commit | 56d95432280d4e2b2eecc50ed3b9c7dac228edda (patch) | |
tree | 0f1bc8a81f3d54a0c75a21e4e0a58d9193137145 /sys/scsi/scsi_base.c | |
parent | 1613f668a5b5f94b0ecefc0f473d791e3290049f (diff) |
Fix pasto - use correct pointer to extract block count from 8 byte
block descriptors. Not that we actually use this information anywhere.
Diffstat (limited to 'sys/scsi/scsi_base.c')
-rw-r--r-- | sys/scsi/scsi_base.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/scsi/scsi_base.c b/sys/scsi/scsi_base.c index bd7b3469adf..0f1c4af2459 100644 --- a/sys/scsi/scsi_base.c +++ b/sys/scsi/scsi_base.c @@ -1,4 +1,4 @@ -/* $OpenBSD: scsi_base.c,v 1.76 2005/05/31 01:15:31 krw Exp $ */ +/* $OpenBSD: scsi_base.c,v 1.77 2005/06/02 23:49:28 krw Exp $ */ /* $NetBSD: scsi_base.c,v 1.43 1997/04/02 02:29:36 mycroft Exp $ */ /* @@ -530,7 +530,7 @@ eight_byte: if (block_size) *block_size = _3btol(desc->blklen); if (block_count) - *block_count = (u_int64_t)_4btol(desc_big->nblocks); + *block_count = (u_int64_t)_4btol(desc->nblocks); return (0); } |