summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorzhang kai <zhangkaiheb@126.com>2021-03-02 18:16:07 +0800
committerDavid S. Miller <davem@davemloft.net>2021-03-03 16:59:17 -0800
commita9ecb0cbf03746b17a7c13bd8e3464e6789f73e8 (patch)
tree5b1fb346b567f377b866538be9825ad618da4e57 /net
parentd65614a01d24704b016635abf5cc028a54e45a62 (diff)
rtnetlink: using dev_base_seq from target net
Signed-off-by: zhang kai <zhangkaiheb@126.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r--net/core/rtnetlink.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/rtnetlink.c b/net/core/rtnetlink.c
index 0edc0b2baaa4..1bdcb33fb561 100644
--- a/net/core/rtnetlink.c
+++ b/net/core/rtnetlink.c
@@ -2147,7 +2147,7 @@ out:
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);