]> git.baikalelectronics.ru Git - kernel.git/commit
rtnl: fix the loop index update error in rtnl_dump_ifinfo()
authorZhang Shengju <zhangshengju@cmss.chinamobile.com>
Sat, 19 Nov 2016 15:28:32 +0000 (23:28 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 20 Nov 2016 03:14:30 +0000 (22:14 -0500)
commit81d3ad0173f3f6cdb0e08df16f8263e99b60bbb7
tree65e524a6741b5b70644959f7249b39b63aff7e30
parent6f505aa7f653f332b417818a649807d7ed1bbdc9
rtnl: fix the loop index update error in rtnl_dump_ifinfo()

If the link is filtered out, loop index should also be updated. If not,
loop index will not be correct.

Fixes: aa12e8a2f1975 ("net: Add support for filtering link dump by master device and kind")
Signed-off-by: Zhang Shengju <zhangshengju@cmss.chinamobile.com>
Acked-by: David Ahern <dsa@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/rtnetlink.c