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

Commit 8f203387 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "wil6210: Validate return value of cfg80211_classify8021d()"

parents 77381445 69a871b4
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -127,6 +127,9 @@ static u16 wil_select_queue(struct net_device *ndev,
	else if (skb->priority == 0 || skb->priority > 7)
		skb->priority = cfg80211_classify8021d(skb, NULL);

	if (unlikely(skb->priority >= ARRAY_SIZE(wil_1d_to_queue)))
		skb->priority = 0;

	qid = wil_1d_to_queue[skb->priority];

	wil_dbg_txrx(wil, "select queue for priority %d -> queue %d\n",