Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 179797
b: refs/heads/master
c: f5300e0
h: refs/heads/master
i:
  179795: 35e00b1
v: v3
  • Loading branch information
Christian Lamparter authored and John W. Linville committed Jan 18, 2010
1 parent 76dc621 commit d0c9d75
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e850f68b8f27a76c4377c34f2e216b8e7e10db3d
refs/heads/master: f5300e04df78feae8107c1846dd3a9e27c071b2f
8 changes: 8 additions & 0 deletions trunk/drivers/net/wireless/p54/p54pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,14 @@ static void p54p_check_rx_ring(struct ieee80211_hw *dev, u32 *index,
i %= ring_limit;
continue;
}

if (unlikely(len > priv->common.rx_mtu)) {
if (net_ratelimit())
dev_err(&priv->pdev->dev, "rx'd frame size "
"exceeds length threshold.\n");

len = priv->common.rx_mtu;
}
skb_put(skb, len);

if (p54_rx(dev, skb)) {
Expand Down

0 comments on commit d0c9d75

Please sign in to comment.