Commit 241804cb authored by Vladimir Kondratiev's avatar Vladimir Kondratiev Committed by John W. Linville

wil6210: Call skb_orphan() right before Rx indication

Other parts of Rx path (BACK logic) will need to access associated data
Signed-off-by: default avatarVladimir Kondratiev <qca_vkondrat@qca.qualcomm.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent cb901733
...@@ -430,6 +430,8 @@ static void wil_netif_rx_any(struct sk_buff *skb, struct net_device *ndev) ...@@ -430,6 +430,8 @@ static void wil_netif_rx_any(struct sk_buff *skb, struct net_device *ndev)
int rc; int rc;
unsigned int len = skb->len; unsigned int len = skb->len;
skb_orphan(skb);
if (in_interrupt()) if (in_interrupt())
rc = netif_rx(skb); rc = netif_rx(skb);
else else
...@@ -464,8 +466,6 @@ void wil_rx_handle(struct wil6210_priv *wil) ...@@ -464,8 +466,6 @@ void wil_rx_handle(struct wil6210_priv *wil)
wil_hex_dump_TXRX("Rx ", DUMP_PREFIX_OFFSET, 16, 1, wil_hex_dump_TXRX("Rx ", DUMP_PREFIX_OFFSET, 16, 1,
skb->data, skb_headlen(skb), false); skb->data, skb_headlen(skb), false);
skb_orphan(skb);
if (wil->wdev->iftype == NL80211_IFTYPE_MONITOR) { if (wil->wdev->iftype == NL80211_IFTYPE_MONITOR) {
skb->dev = ndev; skb->dev = ndev;
skb_reset_mac_header(skb); skb_reset_mac_header(skb);
......
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