summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/net/if_ipheth.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/usb/net/if_ipheth.c')
-rw-r--r--sys/dev/usb/net/if_ipheth.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/usb/net/if_ipheth.c b/sys/dev/usb/net/if_ipheth.c
index ad4b6f1..21db100 100644
--- a/sys/dev/usb/net/if_ipheth.c
+++ b/sys/dev/usb/net/if_ipheth.c
@@ -471,7 +471,7 @@ ipheth_bulk_read_callback(struct usb_xfer *xfer, usb_error_t error)
sc->sc_rx_buf[x] = NULL;
len = usbd_xfer_frame_len(xfer, x);
- if (len < (sizeof(struct ether_header) +
+ if (len < (int)(sizeof(struct ether_header) +
IPHETH_RX_ADJ)) {
m_freem(m);
continue;
OpenPOWER on IntegriCloud