Commit 58e2e7d5 authored by Herbert Xu's avatar Herbert Xu Committed by David S. Miller

rndis_host: Use netdev stats structure

Now that netdev has its own stats structure we should use that
instead.
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent a22d2b36
...@@ -487,7 +487,7 @@ int rndis_rx_fixup(struct usbnet *dev, struct sk_buff *skb) ...@@ -487,7 +487,7 @@ int rndis_rx_fixup(struct usbnet *dev, struct sk_buff *skb)
if (unlikely(hdr->msg_type != RNDIS_MSG_PACKET if (unlikely(hdr->msg_type != RNDIS_MSG_PACKET
|| skb->len < msg_len || skb->len < msg_len
|| (data_offset + data_len + 8) > msg_len)) { || (data_offset + data_len + 8) > msg_len)) {
dev->stats.rx_frame_errors++; dev->net->stats.rx_frame_errors++;
devdbg(dev, "bad rndis message %d/%d/%d/%d, len %d", devdbg(dev, "bad rndis message %d/%d/%d/%d, len %d",
le32_to_cpu(hdr->msg_type), le32_to_cpu(hdr->msg_type),
msg_len, data_offset, data_len, skb->len); msg_len, data_offset, data_len, skb->len);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment