diff options
-rw-r--r-- | sys/dev/usb/if_axe.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/usb/if_axe.c b/sys/dev/usb/if_axe.c index 033659d795c..d7dbc18d74a 100644 --- a/sys/dev/usb/if_axe.c +++ b/sys/dev/usb/if_axe.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_axe.c,v 1.108 2012/03/01 04:33:15 jsg Exp $ */ +/* $OpenBSD: if_axe.c,v 1.109 2012/04/01 13:25:13 jsg Exp $ */ /* * Copyright (c) 2005, 2006, 2007 Jonathan Gray <jsg@openbsd.org> @@ -1028,13 +1028,13 @@ axe_rxeof(usbd_xfer_handle xfer, usbd_private_handle priv, usbd_status status) memcpy(&hdr, buf, sizeof(hdr)); total_len -= sizeof(hdr); - if (((hdr.len & AXE_RH1M_RXLEN_MASK) ^ - (hdr.ilen & AXE_RH1M_RXLEN_MASK)) != + if (((letoh16(hdr.len) & AXE_RH1M_RXLEN_MASK) ^ + (letoh16(hdr.ilen) & AXE_RH1M_RXLEN_MASK)) != AXE_RH1M_RXLEN_MASK) { ifp->if_ierrors++; goto done; } - pktlen = letoh16(hdr.len & AXE_RH1M_RXLEN_MASK); + pktlen = letoh16(hdr.len) & AXE_RH1M_RXLEN_MASK; if (pktlen > total_len) { ifp->if_ierrors++; goto done; |