mirror of
https://github.com/torvalds/linux.git
synced 2026-09-25 21:21:09 -04:00
mlx5: Add missing init_net check in FIB notifier
Take only FIB events that are happening in init_net into account. No other namespaces are supported. Signed-off-by: Jiri Pirko <[email protected]> Acked-by: Roi Dayan <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
committed by
David S. Miller
parent
765b7590c9
commit
a21cf11bc5
@@ -248,6 +248,9 @@ static int mlx5_lag_fib_event(struct notifier_block *nb,
|
||||
struct net_device *fib_dev;
|
||||
struct fib_info *fi;
|
||||
|
||||
if (!net_eq(info->net, &init_net))
|
||||
return NOTIFY_DONE;
|
||||
|
||||
if (info->family != AF_INET)
|
||||
return NOTIFY_DONE;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user