mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 10:40:15 +02:00 
			
		
		
		
	batman-adv: release station info tidstats
With the addition of TXQ stats in the per-tid statistics the struct station_info grew significantly. This resulted in stack size warnings due to the structure itself being above the limit for the warnings. To work around this, the TID array was allocated dynamically. Also a function to free this content was introduced with commit7ea3e110f2("cfg80211: release station info tidstats where needed") but the necessary changes were not provided for batman-adv's B.A.T.M.A.N. V implementation. Signed-off-by: Felix Fietkau <nbd@nbd.name> Fixes:8689c051a2("cfg80211: dynamically allocate per-tid stats for station info") [sven@narfation.org: add commit message] Signed-off-by: Sven Eckelmann <sven@narfation.org> Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
This commit is contained in:
		
							parent
							
								
									9114daa825
								
							
						
					
					
						commit
						7d652669b6
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -104,6 +104,9 @@ static u32 batadv_v_elp_get_throughput(struct batadv_hardif_neigh_node *neigh)
 | 
			
		|||
 | 
			
		||||
		ret = cfg80211_get_station(real_netdev, neigh->addr, &sinfo);
 | 
			
		||||
 | 
			
		||||
		/* free the TID stats immediately */
 | 
			
		||||
		cfg80211_sinfo_release_content(&sinfo);
 | 
			
		||||
 | 
			
		||||
		dev_put(real_netdev);
 | 
			
		||||
		if (ret == -ENOENT) {
 | 
			
		||||
			/* Node is not associated anymore! It would be
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue