Message ID | 20190326083421.57998-1-nbd@nbd.name (mailing list archive) |
---|---|
State | Accepted |
Commit | 2170e2157d7c5398f84477935553d63a93a1f6b8 |
Delegated to: | Kalle Valo |
Headers | show |
Series | [5.1,1/3] mt76: mt7603: add missing initialization for dev->ps_lock | expand |
Felix Fietkau <nbd@nbd.name> wrote: > Fixes lockdep complaint and a potential race condition > > Signed-off-by: Felix Fietkau <nbd@nbd.name> 3 patches applied to wireless-drivers.git, thanks. 2170e2157d7c mt76: mt7603: add missing initialization for dev->ps_lock aa3cb24be18b mt76: mt7603: fix sequence number assignment 9dc27bcbe78c mt76: mt7603: send BAR after powersave wakeup
diff --git a/drivers/net/wireless/mediatek/mt76/mt7603/init.c b/drivers/net/wireless/mediatek/mt76/mt7603/init.c index d54dda67d036..3af45949e868 100644 --- 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);
Fixes lockdep complaint and a potential race condition Signed-off-by: Felix Fietkau <nbd@nbd.name> --- drivers/net/wireless/mediatek/mt76/mt7603/init.c | 2 ++ 1 file changed, 2 insertions(+)