]> git.baikalelectronics.ru Git - kernel.git/commit
net/ipv6: Put target net when address dump fails due to bad attributes
authorDavid Ahern <dsahern@gmail.com>
Wed, 24 Oct 2018 19:59:00 +0000 (12:59 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 24 Oct 2018 21:06:25 +0000 (14:06 -0700)
commit343dc3874e96da3cf84edc7fe24340a7b9e988f6
treeec4a8972439b5fef18a14fd486ef5c91f96b1603
parentda690ca6e908958b340570743c035c9c7c7d6d11
net/ipv6: Put target net when address dump fails due to bad attributes

If tgt_net is set based on IFA_TARGET_NETNSID attribute in the dump
request, make sure all error paths call put_net.

Fixes: 90fe7028f2ad ("net/ipv6: Add support for dumping addresses for a specific device")
Fixes: e2235c60de46 ("net/ipv6: Update inet6_dump_addr for strict data checking")
Signed-off-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/addrconf.c