
The cleanup path will put the target net when netnsid is set. So we must reset netnsid if the input is invalid. Fixes:d7e38611b8
("net/ipv4: Put target net when address dump fails due to bad attributes") Fixes:242afaa696
("net/ipv6: Put target net when address dump fails due to bad attributes") Cc: David Ahern <dsahern@gmail.com> Signed-off-by: Bjørn Mork <bjorn@mork.no> Reviewed-by: David Ahern <dsahern@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
66 KiB
66 KiB