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

Commit 96d20316 authored by David S. Miller's avatar David S. Miller
Browse files

pkt_sched: Fix missed RCU unlock in dev_queue_xmit()



Noticed by Jarek Poplawski.

Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 13601cd8
Loading
Loading
Loading
Loading
+4 −6
Original line number Diff line number Diff line
@@ -1805,14 +1805,12 @@ int dev_queue_xmit(struct sk_buff *skb)
		spin_lock(root_lock);

		if (unlikely(test_bit(__QDISC_STATE_DEACTIVATED, &q->state))) {
			spin_unlock(root_lock);
			kfree_skb(skb);
			rc = NET_XMIT_DROP;
			goto out_kfree_skb;
		}

		} else {
			rc = qdisc_enqueue_root(skb, q);
			qdisc_run(q);

		}
		spin_unlock(root_lock);

		goto out;