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

Commit 4e45fd47 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "usb: gadget: u_ether: Fix skb free warning"

parents 83339054 ecc463f1
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -760,7 +760,8 @@ static void tx_complete(struct usb_ep *ep, struct usb_request *req)
		dev->tx_aggr_cnt[n-1]++;
		dev->tx_aggr_cnt[n-1]++;


		/* sg_ctx is only accessible here, can use lock-free version */
		/* sg_ctx is only accessible here, can use lock-free version */
		__skb_queue_purge(&sg_ctx->skbs);
		while ((skb = __skb_dequeue(&sg_ctx->skbs)) != NULL)
			dev_kfree_skb_any(skb);
	}
	}


	dev->net->stats.tx_packets += n;
	dev->net->stats.tx_packets += n;