]> git.baikalelectronics.ru Git - kernel.git/commit
net: rtnl_dump_all needs to propagate error from dumpit function
authorDavid Ahern <dsahern@gmail.com>
Wed, 24 Oct 2018 19:59:02 +0000 (12:59 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 24 Oct 2018 21:06:25 +0000 (14:06 -0700)
commit5f1c1da25cc53598b647b888b92596db23e57b1c
tree6664d41461603de1ddaf5024da60e3d4cfa2a8b5
parent55ec762c7707d153be07299542bad305c040c61a
net: rtnl_dump_all needs to propagate error from dumpit function

If an address, route or netconf dump request is sent for AF_UNSPEC, then
rtnl_dump_all is used to do the dump across all address families. If one
of the dumpit functions fails (e.g., invalid attributes in the dump
request) then rtnl_dump_all needs to propagate that error so the user
gets an appropriate response instead of just getting no data.

Fixes: 40683806d833 ("net: Enable kernel side filtering of route dumps")
Fixes: 5bf3c21db4cb ("net/ipv4: Add support for dumping addresses for a specific device")
Fixes: 8673fde0a0ab ("net/ipv6: Add support for dumping addresses for a specific device")
Signed-off-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/rtnetlink.c