--- drivers/net/wireless/orinoco.c.orig	Tue Feb 26 10:49:39 2002
+++ drivers/net/wireless/orinoco.c	Fri Jun 28 16:10:17 2002
@@ -1161,6 +1161,12 @@
 		   802.11 frame which we'll need to de-encapsulate to
 		   the original EthernetII frame. */
 
+		if (length < ENCAPS_OVERHEAD) {
+			stats->rx_length_errors++;
+			stats->rx_dropped++;
+			goto drop;
+		}
+
 		/* Remove SNAP header, reconstruct EthernetII frame */
 		data_len = length - ENCAPS_OVERHEAD;
 		data_off = sizeof(hdr);
