]> git.proxmox.com Git - mirror_ubuntu-kernels.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, 20 Jan 2023 12:05:48 +0000 (13:05 +0100)
commit9175ee1a99d57ec07d66ff572e1d5a724477ab37
tree1355461c3a641ef97baf28550e897fdb27c1a765
parentce4273d89c52167d6fe20572136c58117eae0657
firmware: stratix10-svc: add missing gen_pool_destroy() in stratix10_svc_drv_probe()

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>
drivers/firmware/stratix10-svc.c