Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 325063
b: refs/heads/master
c: 311e24f
h: refs/heads/master
i:
  325061: 7a07a2c
  325059: 3fc5eae
  325055: 11812dd
v: v3
  • Loading branch information
Devendra Naga authored and Greg Kroah-Hartman committed Sep 10, 2012
1 parent 70e89ee commit 3faf5e9
Show file tree
Hide file tree
Showing 2 changed files with 4 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: 7694538cfa3636d217bdafa1328fb0cf85119540
refs/heads/master: 311e24fb1a654a260697793880979142fbbd185d
9 changes: 3 additions & 6 deletions trunk/drivers/staging/wlan-ng/p80211conv.c
Original file line number Diff line number Diff line change
Expand Up @@ -559,26 +559,24 @@ void p80211skb_rxmeta_detach(struct sk_buff *skb)
/* Sanity checks */
if (skb == NULL) { /* bad skb */
pr_debug("Called w/ null skb.\n");
goto exit;
return;
}
frmmeta = P80211SKB_FRMMETA(skb);
if (frmmeta == NULL) { /* no magic */
pr_debug("Called w/ bad frmmeta magic.\n");
goto exit;
return;
}
rxmeta = frmmeta->rx;
if (rxmeta == NULL) { /* bad meta ptr */
pr_debug("Called w/ bad rxmeta ptr.\n");
goto exit;
return;
}

/* Free rxmeta */
kfree(rxmeta);

/* Clear skb->cb */
memset(skb->cb, 0, sizeof(skb->cb));
exit:
return;
}

/*----------------------------------------------------------------
Expand Down Expand Up @@ -660,5 +658,4 @@ void p80211skb_free(struct wlandevice *wlandev, struct sk_buff *skb)
else
printk(KERN_ERR "Freeing an skb (%p) w/ no frmmeta.\n", skb);
dev_kfree_skb(skb);
return;
}

0 comments on commit 3faf5e9

Please sign in to comment.