mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 01:49:46 +00:00
mt76: mt7615: hold mt76 lock queueing wd in mt7615_queue_key_update
[ Upstream commitcddaaa5637] wq queue is always updated holding mt76 spinlock. Grab mt76 lock in mt7615_queue_key_update() before putting a new element at the end of the queue. Fixes:eb99cc95c3("mt76: mt7615: introduce mt7663u support") Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org> Signed-off-by: Felix Fietkau <nbd@nbd.name> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
9fa6d80060
commit
254f44a6cd
@@ -361,7 +361,10 @@ mt7615_queue_key_update(struct mt7615_dev *dev, enum set_key_cmd cmd,
|
||||
wd->key.keylen = key->keylen;
|
||||
wd->key.cmd = cmd;
|
||||
|
||||
spin_lock_bh(&dev->mt76.lock);
|
||||
list_add_tail(&wd->node, &dev->wd_head);
|
||||
spin_unlock_bh(&dev->mt76.lock);
|
||||
|
||||
queue_work(dev->mt76.wq, &dev->wtbl_work);
|
||||
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user