]> 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)
commit405b9d3747bb6c8ec95e8f5518b1196cfd949bb8
tree6664d41461603de1ddaf5024da60e3d4cfa2a8b5
parent33e2c99266051fcb15533a0b26307b3040bf3fac
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: 0574e933d11d ("net: Enable kernel side filtering of route dumps")
Fixes: e3bb980642dc ("net/ipv4: Add support for dumping addresses for a specific device")
Fixes: 90fe7028f2ad ("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