RDMA/qedr: clean up work queue on failure in qedr_alloc_resources()
stable inclusion from stable-v5.10.154 commit 4e1e4485b2520983b1cc47b3af278e9f4b9734a5 category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I64YCB Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=4e1e4485b2520983b1cc47b3af278e9f4b9734a5 -------------------------------- [ Upstream commit 7a47e077 ] Add a check for if create_singlethread_workqueue() fails and also destroy the work queue on failure paths. Fixes: e411e058 ("RDMA/qedr: Add iWARP connection management functions") Signed-off-by:Dan Carpenter <dan.carpenter@oracle.com> Link: https://lore.kernel.org/r/Y1gBkDucQhhWj5YM@kili Signed-off-by:
Leon Romanovsky <leon@kernel.org> Signed-off-by:
Jason Gunthorpe <jgg@nvidia.com> Signed-off-by:
Sasha Levin <sashal@kernel.org> Signed-off-by:
Lipeng Sang <sanglipeng1@jd.com> (cherry picked from commit 7cb57c6b)
Loading
Please sign in to comment