dmaengine: idxd: Add missing cleanup for early error out in idxd_setup_internals
commit 61259fb9 upstream. The idxd_setup_internals() is missing some cleanup when things fail in the middle. Add the appropriate cleanup routines: - cleanup groups - cleanup enginces - cleanup wqs to make sure it exits gracefully. Fixes: defe49f9 ("dmaengine: idxd: fix group conf_dev lifetime") Cc: stable@vger.kernel.org Suggested-by:Fenghua Yu <fenghuay@nvidia.com> Signed-off-by:
Shuai Xue <xueshuai@linux.alibaba.com> Reviewed-by:
Fenghua Yu <fenghuay@nvidia.com> Reviewed-by:
Dave Jiang <dave.jiang@intel.com> Link: https://lore.kernel.org/r/20250404120217.48772-5-xueshuai@linux.alibaba.com Signed-off-by:
Vinod Koul <vkoul@kernel.org> Signed-off-by:
Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Loading