Skip to content
Commit d7e38611 authored by David Ahern's avatar David Ahern Committed by David S. Miller
Browse files

net/ipv4: 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: 5fcd266a ("net/ipv4: Add support for dumping addresses for a specific device")
Fixes: c33078e3

 ("net/ipv4: Update inet_dump_ifaddr for strict data checking")
Reported-by: default avatarLi RongQing <lirongqing@baidu.com>
Signed-off-by: default avatarDavid Ahern <dsahern@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 01aa9d51
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment