]> www.infradead.org Git - users/jedix/linux-maple.git/commit
firmware: stratix10-svc: add missing gen_pool_destroy() in stratix10_svc_drv_probe()
authorYang Yingliang <yangyingliang@huawei.com>
Tue, 29 Nov 2022 16:36:01 +0000 (10:36 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Mar 2023 08:33:32 +0000 (09:33 +0100)
commit6fcedeadb3ef8dfec02e6a8ba3f9c4bbc9543dfd
tree22f40c9894f531e4f95ac73b890a1a7e67ed715b
parent959dd00ed4d8ea21baa7d33837fae130d7b200a0
firmware: stratix10-svc: add missing gen_pool_destroy() in stratix10_svc_drv_probe()

[ Upstream commit 9175ee1a99d57ec07d66ff572e1d5a724477ab37 ]

In error path in stratix10_svc_drv_probe(), gen_pool_destroy() should be called
to destroy the memory pool that created by svc_create_memory_pool().

Fixes: 7ca5ce896524 ("firmware: add Intel Stratix10 service layer driver")
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Signed-off-by: Dinh Nguyen <dinguyen@kernel.org>
Link: https://lore.kernel.org/r/20221129163602.462369-1-dinguyen@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/firmware/stratix10-svc.c