Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 79147
b: refs/heads/master
c: 7bf02c2
h: refs/heads/master
i:
  79145: 3e5cb6e
  79143: acf8159
v: v3
  • Loading branch information
David Woodhouse authored and David S. Miller committed Jan 28, 2008
1 parent 04ea562 commit 451b3a2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 180be755aec37483337f64bfca3d4b02f5c8fef4
refs/heads/master: 7bf02c2985ced746f8b8956dbe4b0384edb41846
14 changes: 8 additions & 6 deletions trunk/drivers/net/wireless/libertas/rx.c
Original file line number Diff line number Diff line change
Expand Up @@ -337,9 +337,10 @@ static int process_rxed_802_11_packet(struct lbs_private *priv,
// lbs_deb_hex(LBS_DEB_RX, "RX Data: Before chop rxpd", skb->data, min(skb->len, 100));

if (skb->len < (ETH_HLEN + 8 + sizeof(struct rxpd))) {
lbs_deb_rx("rx err: frame received wit bad length\n");
lbs_deb_rx("rx err: frame received with bad length\n");
priv->stats.rx_length_errors++;
ret = 0;
ret = -EINVAL;
kfree(skb);
goto done;
}

Expand Down Expand Up @@ -381,10 +382,11 @@ static int process_rxed_802_11_packet(struct lbs_private *priv,

/* add space for the new radio header */
if ((skb_headroom(skb) < sizeof(struct rx_radiotap_hdr)) &&
pskb_expand_head(skb, sizeof(struct rx_radiotap_hdr), 0,
GFP_ATOMIC)) {
lbs_pr_alert("%s: couldn't pskb_expand_head\n",
__func__);
pskb_expand_head(skb, sizeof(struct rx_radiotap_hdr), 0, GFP_ATOMIC)) {
lbs_pr_alert("%s: couldn't pskb_expand_head\n", __func__);
ret = -ENOMEM;
kfree_skb(skb);
goto done;
}

pradiotap_hdr = (void *)skb_push(skb, sizeof(struct rx_radiotap_hdr));
Expand Down

0 comments on commit 451b3a2

Please sign in to comment.