rocker: add missing init_net check in FIB notifier
Subsystems (3)
Jiri Pirko
maintainerPATCH 1/1 rocker: add missing init_net check in FIB notifier
From: Jiri Pirko <[email protected]>
Take only FIB events that are happening in init_net into account. No other namespaces are supported.
Signed-off-by Jiri Pirko <[email protected]>
--- drivers/net/ethernet/rocker/rocker_main.c | 3 +++ 1 file changed, 3 insertions(+)
drivers/net/ethernet/rocker/rocker_main.c +3 -0
@@ -2189,6 +2189,9 @@ static int rocker_router_fib_event(struct notifier_block *nb,struct rocker_fib_event_work *fib_work;struct fib_notifier_info *info = ptr; +if (!net_eq (info->net, &init_net)) +return NOTIFY_DONE ; +if (info->family !=AF_INET )return NOTIFY_DONE ;
Signature · 1 line
2.21.0
From: Jiri Pirko <[email protected]>
Date: Wed, 4 Sep 2019 09:40:47 +0200
Quoted 6 lines
From: Jiri Pirko <[email protected]>
Take only FIB events that are happening in
init_netinto account. No other namespaces are supported.Signed-off-by Jiri Pirko <[email protected]>
Applied.