mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 10:40:15 +02:00 
			
		
		
		
	mt76: mt7915: add missing bh-disable around tx napi enable/schedule
napi_schedule() can call __raise_softirq_irqoff(), which can perform softirq handling, so it must not be called in a pure process context with BH enabled. Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
		
							parent
							
								
									12fba11c7e
								
							
						
					
					
						commit
						c0182aa985
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -2183,8 +2183,10 @@ void mt7915_mac_reset_work(struct work_struct *work)
 | 
			
		|||
 | 
			
		||||
	mt76_worker_enable(&dev->mt76.tx_worker);
 | 
			
		||||
 | 
			
		||||
	local_bh_disable();
 | 
			
		||||
	napi_enable(&dev->mt76.tx_napi);
 | 
			
		||||
	napi_schedule(&dev->mt76.tx_napi);
 | 
			
		||||
	local_bh_enable();
 | 
			
		||||
 | 
			
		||||
	ieee80211_wake_queues(mt76_hw(dev));
 | 
			
		||||
	if (ext_phy)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue