Module Name:    src
Committed By:   rin
Date:           Wed Feb  6 07:59:24 UTC 2019

Modified Files:
        src/sys/dev/usb: if_axen.c

Log Message:
Fix previous.


To generate a diff of this commit:
cvs rdiff -u -r1.29 -r1.30 src/sys/dev/usb/if_axen.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/usb/if_axen.c
diff -u src/sys/dev/usb/if_axen.c:1.29 src/sys/dev/usb/if_axen.c:1.30
--- src/sys/dev/usb/if_axen.c:1.29	Wed Feb  6 07:56:14 2019
+++ src/sys/dev/usb/if_axen.c	Wed Feb  6 07:59:24 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: if_axen.c,v 1.29 2019/02/06 07:56:14 rin Exp $	*/
+/*	$NetBSD: if_axen.c,v 1.30 2019/02/06 07:59:24 rin Exp $	*/
 /*	$OpenBSD: if_axen.c,v 1.3 2013/10/21 10:10:22 yuo Exp $	*/
 
 /*
@@ -23,7 +23,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_axen.c,v 1.29 2019/02/06 07:56:14 rin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_axen.c,v 1.30 2019/02/06 07:59:24 rin Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_inet.h"
@@ -1047,7 +1047,7 @@ axen_rxeof(struct usbd_xfer *xfer, void 
 	hdr_offset = (uint16_t)(rx_hdr >> 16);
 	pkt_count  = (uint16_t)(rx_hdr & 0xffff);
 
-	if (total_len > sc->axen_bufsz) {
+	if (total_len > sc->axen_rx_bufsz) {
 		aprint_error_dev(sc->axen_dev, "rxeof: too large transfer\n");
 		goto done;
 	}

Reply via email to