]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ipv6: Fix error path to cancel the meseage
authorZhang Qilong <zhangqilong3@huawei.com>
Thu, 12 Nov 2020 08:09:50 +0000 (16:09 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 24 Nov 2020 12:28:56 +0000 (13:28 +0100)
commit88a5a3e1530c51b4e46ab36b49f7cdbe6d381105
treebdcf307511cc4075eaa8e68daf125a7dc937f6c7
parent0e8b0213dc60371172da2ae61b37c1310dde4b8a
ipv6: Fix error path to cancel the meseage

[ Upstream commit ceb736e1d45c253f5e86b185ca9b497cdd43063f ]

genlmsg_cancel() needs to be called in the error path of
inet6_fill_ifmcaddr and inet6_fill_ifacaddr to cancel
the message.

Fixes: 6ecf4c37eb3e ("ipv6: enable IFA_TARGET_NETNSID for RTM_GETADDR")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Zhang Qilong <zhangqilong3@huawei.com>
Link: https://lore.kernel.org/r/20201112080950.1476302-1-zhangqilong3@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/ipv6/addrconf.c