projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4837696
)
mt76: mt7603: add missing initialization for dev->ps_lock
author
Felix Fietkau
<nbd@nbd.name>
Tue, 26 Mar 2019 08:34:19 +0000
(09:34 +0100)
committer
Kalle Valo
<kvalo@codeaurora.org>
Fri, 12 Apr 2019 18:28:25 +0000
(21:28 +0300)
Fixes lockdep complaint and a potential race condition
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/mediatek/mt76/mt7603/init.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/mediatek/mt76/mt7603/init.c
b/drivers/net/wireless/mediatek/mt76/mt7603/init.c
index d54dda67d036c19cffce6bc30765c39dc93ee326..3af45949e868909e3073335cc302411c5e6c9761 100644
(file)
--- a/
drivers/net/wireless/mediatek/mt76/mt7603/init.c
+++ b/
drivers/net/wireless/mediatek/mt76/mt7603/init.c
@@
-510,6
+510,8
@@
int mt7603_register_device(struct mt7603_dev *dev)
bus_ops->rmw = mt7603_rmw;
dev->mt76.bus = bus_ops;
+ spin_lock_init(&dev->ps_lock);
+
INIT_DELAYED_WORK(&dev->mac_work, mt7603_mac_work);
tasklet_init(&dev->pre_tbtt_tasklet, mt7603_pre_tbtt_tasklet,
(unsigned long)dev);