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

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

pkt_sched: Fix locking in shutdown_scheduler_queue()



Qdisc locks need to be held with BH disabled.

Tested-by: default avatarIngo Molnar <mingo@elte.hu>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent f867e6af
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -736,9 +736,9 @@ static void shutdown_scheduler_queue(struct net_device *dev,
		dev_queue->qdisc = qdisc_default;
		dev_queue->qdisc_sleeping = qdisc_default;

		spin_lock(root_lock);
		spin_lock_bh(root_lock);
		qdisc_destroy(qdisc);
		spin_unlock(root_lock);
		spin_unlock_bh(root_lock);
	}
}