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:39:38 +0000 (09:39 +0100)
commitb1cdf1113e21a8e5e7f814376ca9a2ac03ca311e
treec4c836814adcfdde60f4452f5d24f47907c464a3
parent7f9416f14e86c9d27e5d9c37963f71fdc230a15a
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