diff options
author | Jasper Lievisse Adriaanse <jasper@cvs.openbsd.org> | 2011-03-16 22:39:14 +0000 |
---|---|---|
committer | Jasper Lievisse Adriaanse <jasper@cvs.openbsd.org> | 2011-03-16 22:39:14 +0000 |
commit | 53179e3cecb8b4e30540b0a84072c53539b7583d (patch) | |
tree | 7e87aa63e2dd2de2b79f2d00ff534fef1139f4ea /sys/dev/usb | |
parent | b4815c8901b91d35c5ec2eda0e770e97bb6766e3 (diff) |
revert previous as it breaks nfs client as reported by kili@
req'd by jsg@
Diffstat (limited to 'sys/dev/usb')
-rw-r--r-- | sys/dev/usb/if_udav.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/usb/if_udav.c b/sys/dev/usb/if_udav.c index 513e73984a5..69b8cb7e471 100644 --- a/sys/dev/usb/if_udav.c +++ b/sys/dev/usb/if_udav.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_udav.c,v 1.52 2011/03/16 07:39:22 jsg Exp $ */ +/* $OpenBSD: if_udav.c,v 1.53 2011/03/16 22:39:13 jasper Exp $ */ /* $NetBSD: if_udav.c,v 1.3 2004/04/23 17:25:25 itojun Exp $ */ /* $nabe: if_udav.c,v 1.3 2003/08/21 16:57:19 nabe Exp $ */ /* @@ -1138,8 +1138,7 @@ udav_rxeof(usbd_xfer_handle xfer, usbd_private_handle priv, usbd_status status) goto done; } - if (total_len < ETHERMIN || - total_len > ifp->if_hardmtu || + if (total_len < sizeof(struct ether_header) || h->pktstat & UDAV_RSR_ERR) { ifp->if_ierrors++; goto done; |