]> git.ipfire.org Git - thirdparty/linux.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)
committerJakub Kicinski <kuba@kernel.org>
Thu, 17 Jul 2025 01:33:39 +0000 (18:33 -0700)
commitae3264a25a4635531264728859dbe9c659fad554
tree3c6cb54d398750c37c4df546d16a69c562e6b016
parent69a46a5b42f9423b2536c1026518f6ff355967c4
ipv6: mcast: Delay put pmc->idev in mld_del_delrec()

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>
net/ipv6/mcast.c