Skip to content

Commit

Permalink
wil6210: Call skb_orphan() right before Rx indication
Browse files Browse the repository at this point in the history
Other parts of Rx path (BACK logic) will need to access associated data

Signed-off-by: Vladimir Kondratiev <qca_vkondrat@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Vladimir Kondratiev authored and John W. Linville committed Jan 30, 2013
1 parent cb90173 commit 241804c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/net/wireless/ath/wil6210/txrx.c
Original file line number Diff line number Diff line change
Expand Up @@ -430,6 +430,8 @@ static void wil_netif_rx_any(struct sk_buff *skb, struct net_device *ndev)
int rc;
unsigned int len = skb->len;

skb_orphan(skb);

if (in_interrupt())
rc = netif_rx(skb);
else
Expand Down Expand Up @@ -464,8 +466,6 @@ void wil_rx_handle(struct wil6210_priv *wil)
wil_hex_dump_TXRX("Rx ", DUMP_PREFIX_OFFSET, 16, 1,
skb->data, skb_headlen(skb), false);

skb_orphan(skb);

if (wil->wdev->iftype == NL80211_IFTYPE_MONITOR) {
skb->dev = ndev;
skb_reset_mac_header(skb);
Expand Down

0 comments on commit 241804c

Please sign in to comment.