]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ipv6: mcast: Delay put pmc->idev in mld_del_delrec()
authorYue Haibing <yuehaibing@huawei.com>
Mon, 14 Jul 2025 14:19:57 +0000 (22:19 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 24 Jul 2025 06:53:19 +0000 (08:53 +0200)
commitdcbc346f50a009d8b7f4e330f9f2e22d6442fa26
tree7e19789c819f5a005b637d3675bd21dcb8627fd1
parent6a213143e0eaa5cf115b487fc4b2346806c777ef
ipv6: mcast: Delay put pmc->idev in mld_del_delrec()

[ Upstream commit ae3264a25a4635531264728859dbe9c659fad554 ]

pmc->idev is still used in ip6_mc_clear_src(), so as mld_clear_delrec()
does, the reference should be put after ip6_mc_clear_src() return.

Fixes: 63ed8de4be81 ("mld: add mc_lock for protecting per-interface mld data")
Signed-off-by: Yue Haibing <yuehaibing@huawei.com>
Link: https://patch.msgid.link/20250714141957.3301871-1-yuehaibing@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/ipv6/mcast.c