]> git.baikalelectronics.ru Git - kernel.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)
committerJakub Kicinski <kuba@kernel.org>
Sat, 14 Nov 2020 02:20:00 +0000 (18:20 -0800)
commita639c57595a099e39d96ad4b8b7dae857ba2dc01
tree3bf5519d7ad161f134b7ba471c181574baf41d7d
parent0356615cfaf761ba6019bf392afe4d2a16c7b81b
ipv6: Fix error path to cancel the meseage

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

Fixes: 2ec48e2404a6 ("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>
net/ipv6/addrconf.c