diff options
author | Alexander Yurchenko <grange@cvs.openbsd.org> | 2003-02-25 19:21:15 +0000 |
---|---|---|
committer | Alexander Yurchenko <grange@cvs.openbsd.org> | 2003-02-25 19:21:15 +0000 |
commit | 4f6c9708227dc808ee56228a2e024eed7d5af671 (patch) | |
tree | 1287d2ab3b13b853466662d6a4be33e8f960fefe /sys/dev/ata/atareg.h | |
parent | dbc0452b80cb9597ee0de19703025a878cd7b4ca (diff) |
Correct the size of __reserved9 field in struct ataparams;
from Yichen Xie's bounds checker via tedu@
ok costa@
Diffstat (limited to 'sys/dev/ata/atareg.h')
-rw-r--r-- | sys/dev/ata/atareg.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ata/atareg.h b/sys/dev/ata/atareg.h index fee6f77cdfe..92f7e6271e0 100644 --- a/sys/dev/ata/atareg.h +++ b/sys/dev/ata/atareg.h @@ -1,4 +1,4 @@ -/* $OpenBSD: atareg.h,v 1.6 2002/06/14 21:34:59 todd Exp $ */ +/* $OpenBSD: atareg.h,v 1.7 2003/02/25 19:21:14 grange Exp $ */ /* $NetBSD: atareg.h,v 1.5 1999/01/18 20:06:24 bouyer Exp $ */ #ifndef __DEV_ATA_ATAREG_H__ @@ -211,7 +211,7 @@ struct ataparams { #define ATAPI_CFA_MODE1_DIS 0x1000 /* CFA Mode 1 Disabled */ #define ATAPI_CFA_MODE1_REQ 0x2000 /* CFA Mode 1 Required */ #define ATAPI_CFA_WORD160 0x8000 /* Word 160 supported */ - u_int16_t __reserved9[31]; /* 161-175: reserved for CFA */ + u_int16_t __reserved9[15]; /* 161-175: reserved for CFA */ u_int8_t atap_media_serial[60]; /* 176-205: media serial number */ u_int16_t __reserved10[49]; /* 206-254: reserved */ #if BYTE_ORDER == LITTLE_ENDIAN |