diff options
-rw-r--r-- | drivers/net/vxlan.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/net/vxlan.c b/drivers/net/vxlan.c index b6731fad19ba..06c0731ae619 100644 --- a/drivers/net/vxlan.c +++ b/drivers/net/vxlan.c | |||
@@ -931,10 +931,10 @@ static int vxlan_fdb_dump(struct sk_buff *skb, struct netlink_callback *cb, | |||
931 | hlist_for_each_entry_rcu(f, &vxlan->fdb_head[h], hlist) { | 931 | hlist_for_each_entry_rcu(f, &vxlan->fdb_head[h], hlist) { |
932 | struct vxlan_rdst *rd; | 932 | struct vxlan_rdst *rd; |
933 | 933 | ||
934 | if (idx < cb->args[0]) | ||
935 | goto skip; | ||
936 | |||
937 | list_for_each_entry_rcu(rd, &f->remotes, list) { | 934 | list_for_each_entry_rcu(rd, &f->remotes, list) { |
935 | if (idx < cb->args[0]) | ||
936 | goto skip; | ||
937 | |||
938 | err = vxlan_fdb_info(skb, vxlan, f, | 938 | err = vxlan_fdb_info(skb, vxlan, f, |
939 | NETLINK_CB(cb->skb).portid, | 939 | NETLINK_CB(cb->skb).portid, |
940 | cb->nlh->nlmsg_seq, | 940 | cb->nlh->nlmsg_seq, |
@@ -942,9 +942,9 @@ static int vxlan_fdb_dump(struct sk_buff *skb, struct netlink_callback *cb, | |||
942 | NLM_F_MULTI, rd); | 942 | NLM_F_MULTI, rd); |
943 | if (err < 0) | 943 | if (err < 0) |
944 | goto out; | 944 | goto out; |
945 | } | ||
946 | skip: | 945 | skip: |
947 | ++idx; | 946 | ++idx; |
947 | } | ||
948 | } | 948 | } |
949 | } | 949 | } |
950 | out: | 950 | out: |