diff options
| author | Hans Petter Selasky <hselasky@FreeBSD.org> | 2012-09-28 15:33:13 +0000 |
|---|---|---|
| committer | Hans Petter Selasky <hselasky@FreeBSD.org> | 2012-09-28 15:33:13 +0000 |
| commit | 66249c7c82f64f70b1cc7c7df5cf5cbadcd35ab8 (patch) | |
| tree | 2d75c4714d19d539c9cc677933a8af051daeca71 | |
| parent | a3bfcf3e5d36b03c8af94267b4813014c3a913ac (diff) | |
Notes
| -rw-r--r-- | sys/dev/usb/net/if_smsc.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/usb/net/if_smsc.c b/sys/dev/usb/net/if_smsc.c index 6c9f60f7f6ab9..5f2acfbad2c7f 100644 --- a/sys/dev/usb/net/if_smsc.c +++ b/sys/dev/usb/net/if_smsc.c @@ -1042,7 +1042,9 @@ smsc_bulk_read_callback(struct usb_xfer *xfer, usb_error_t error) } /* Finally enqueue the mbuf on the receive queue */ - uether_rxmbuf(ue, m, pktlen); + /* Remove 4 trailing bytes */ + if (pktlen >= (4 + ETHER_HDR_LEN)) + uether_rxmbuf(ue, m, pktlen - 4); } /* Update the offset to move to the next potential packet */ |
