From: Ben Hutchings Date: Fri, 2 Nov 2012 12:56:52 +0000 (+0000) Subject: net: Fix continued iteration in rtnl_bridge_getlink() X-Git-Tag: omap-for-v3.8/fixes-for-merge-window-v4-signed~45^2~466 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=25b1e67921f448cdddf70042ba233ffe43d33a9c;p=pandora-kernel.git 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 Tested-by: John Fastabend Signed-off-by: David S. Miller --- Reading git-diff-tree failed