]> git.baikalelectronics.ru Git - kernel.git/commit
rtnetlink: Fail dump if target netnsid is invalid
authorDavid Ahern <dsahern@gmail.com>
Fri, 28 Sep 2018 19:28:41 +0000 (12:28 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 2 Oct 2018 06:22:04 +0000 (23:22 -0700)
commit9f5ac02d6b3e5d1c0cf583654c0eaafabec1afcf
tree821ff67bbcd539aa5dbe7b97066a625dbf5ef95f
parent0ba2d15c03e2431ce84a4239774e0d60c376270e
rtnetlink: Fail dump if target netnsid is invalid

Link dumps can return results from a target namespace. If the namespace id
is invalid, then the dump request should fail if get_target_net fails
rather than continuing with a dump of the current namespace.

Fixes: 5e1c7720acaf8 ("rtnetlink: use netnsid to query interface")
Signed-off-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/rtnetlink.c