mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 10:40:15 +02:00 
			
		
		
		
	net: bridge: Exit if multicast_init_stats fails
If br_multicast_init_stats() fails, there is no need to set lockdep classes. Just return from the error path. Signed-off-by: Breno Leitao <leitao@debian.org> Acked-by: Nikolay Aleksandrov <razor@blackwall.org> Link: https://lore.kernel.org/r/20240227182338.2739884-2-leitao@debian.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
		
							parent
							
								
									d35150c79f
								
							
						
					
					
						commit
						82a48affb3
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
					@ -135,10 +135,11 @@ static int br_dev_init(struct net_device *dev)
 | 
				
			||||||
		br_vlan_flush(br);
 | 
							br_vlan_flush(br);
 | 
				
			||||||
		br_mdb_hash_fini(br);
 | 
							br_mdb_hash_fini(br);
 | 
				
			||||||
		br_fdb_hash_fini(br);
 | 
							br_fdb_hash_fini(br);
 | 
				
			||||||
 | 
							return err;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	netdev_lockdep_set_classes(dev);
 | 
						netdev_lockdep_set_classes(dev);
 | 
				
			||||||
	return err;
 | 
						return 0;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static void br_dev_uninit(struct net_device *dev)
 | 
					static void br_dev_uninit(struct net_device *dev)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue