diff options
author | zhang kai <zhangkaiheb@126.com> | 2021-03-02 11:16:07 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-03-04 01:59:17 +0100 |
commit | a9ecb0cbf03746b17a7c13bd8e3464e6789f73e8 (patch) | |
tree | 5b1fb346b567f377b866538be9825ad618da4e57 /net | |
parent | net: 9p: advance iov on empty read (diff) | |
download | linux-a9ecb0cbf03746b17a7c13bd8e3464e6789f73e8.tar.xz linux-a9ecb0cbf03746b17a7c13bd8e3464e6789f73e8.zip |
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.c | 2 |
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); |