diff options
author | Harvey Harrison <harvey.harrison@gmail.com> | 2008-09-22 19:16:20 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-09-22 19:16:20 -0700 |
commit | f11d32dfaa0753cfab7b2e5052923e8784a3c141 (patch) | |
tree | a624b87d9fee2f9673ca0d2c63b821c7918932b4 /drivers/isdn/hardware/mISDN/hfc_pci.h | |
parent | 4d5392cc4de3403d71b929f39f3bc659db029ad1 (diff) |
mISDN: endian annotations for struct zt
Found two possible bugs where the z1 value was used directly without
byteswapping.
Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/isdn/hardware/mISDN/hfc_pci.h')
-rw-r--r-- | drivers/isdn/hardware/mISDN/hfc_pci.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/isdn/hardware/mISDN/hfc_pci.h b/drivers/isdn/hardware/mISDN/hfc_pci.h index fd2c9be6d84..5783d22a18f 100644 --- a/drivers/isdn/hardware/mISDN/hfc_pci.h +++ b/drivers/isdn/hardware/mISDN/hfc_pci.h @@ -183,8 +183,8 @@ #define D_FREG_MASK 0xF struct zt { - unsigned short z1; /* Z1 pointer 16 Bit */ - unsigned short z2; /* Z2 pointer 16 Bit */ + __le16 z1; /* Z1 pointer 16 Bit */ + __le16 z2; /* Z2 pointer 16 Bit */ }; struct dfifo { |