Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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
@@ -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);