diff options
author | Ben Hutchings <bhutchings@solarflare.com> | 2012-11-02 12:56:52 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-11-02 21:53:35 -0400 |
commit | 25b1e67921f448cdddf70042ba233ffe43d33a9c (patch) | |
tree | 80049b1fc9689f357c9fdaaa22c35fab8d3159c2 /net/ipv4/tcp_ipv4.c | |
parent | 1a72418bd7f0edcb85c817964efd370254fe749d (diff) |
net: Fix continued iteration in rtnl_bridge_getlink()
Commit e5a55a898720096f43bc24938f8875c0a1b34cd7 ('net: create generic
bridge ops') broke the handling of a non-zero starting index in
rtnl_bridge_getlink() (based on the old br_dump_ifinfo()).
When the starting index is non-zero, we need to increment the current
index for each entry that we are skipping. Also, we need to check the
index before both cases, since we may previously have stopped
iteration between getting information about a device from its master
and from itself.
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Tested-by: John Fastabend <john.r.fastabend@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/tcp_ipv4.c')
0 files changed, 0 insertions, 0 deletions