]> git.baikalelectronics.ru Git - kernel.git/commit
net/ipv4: Put target net when address dump fails due to bad attributes
authorDavid Ahern <dsahern@gmail.com>
Wed, 24 Oct 2018 19:58:59 +0000 (12:58 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 24 Oct 2018 21:06:25 +0000 (14:06 -0700)
commitda690ca6e908958b340570743c035c9c7c7d6d11
treed7c384596987946a32670290b45300f3f2dd1fcd
parent0b566fba69e79c1a48ad55257507235f5289ee64
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: e3bb980642dc ("net/ipv4: Add support for dumping addresses for a specific device")
Fixes: 08ee116eed82 ("net/ipv4: Update inet_dump_ifaddr for strict data checking")
Reported-by: Li RongQing <lirongqing@baidu.com>
Signed-off-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/devinet.c