diff mbox series

rtnetlink: using dev_base_seq from target net

Message ID 20210302101607.18560-1-zhangkaiheb@126.com
State New
Headers show
Series rtnetlink: using dev_base_seq from target net | expand

Commit Message

zhang kai March 2, 2021, 10:16 a.m. UTC
Signed-off-by: zhang kai <zhangkaiheb@126.com>
---
 net/core/rtnetlink.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/net/core/rtnetlink.c b/net/core/rtnetlink.c
index 0edc0b2ba..1bdcb33fb 100644
--- a/net/core/rtnetlink.c
+++ b/net/core/rtnetlink.c
@@ -2147,7 +2147,7 @@  static int rtnl_dump_ifinfo(struct sk_buff *skb, struct netlink_callback *cb)
 out_err:
 	cb->args[1] = idx;
 	cb->args[0] = h;
-	cb->seq = net->dev_base_seq;
+	cb->seq = tgt_net->dev_base_seq;
 	nl_dump_check_consistent(cb, nlmsg_hdr(skb));
 	if (netnsid >= 0)
 		put_net(tgt_net);