OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
09ea989
)
rocker: add missing init_net check in FIB notifier
author
Jiri Pirko
<jiri@mellanox.com>
Wed, 4 Sep 2019 07:40:47 +0000
(09:40 +0200)
committer
David S. Miller
<davem@davemloft.net>
Thu, 5 Sep 2019 10:14:10 +0000
(12:14 +0200)
Take only FIB events that are happening in init_net into account. No other
namespaces are supported.
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/rocker/rocker_main.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/rocker/rocker_main.c
b/drivers/net/ethernet/rocker/rocker_main.c
index
2c5d3f5
..
786b158
100644
(file)
--- a/
drivers/net/ethernet/rocker/rocker_main.c
+++ b/
drivers/net/ethernet/rocker/rocker_main.c
@@
-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;