Skip to content

Commit af92e4a

Browse files
bharatpotnurigregkh
authored andcommitted
RDMA/iw_cxgb4: cleanup device debugfs entries on ULD remove
[ Upstream commit 49ea0c0 ] Remove device specific debugfs entries immediately if LLD detaches a particular ULD device in case of fatal PCI errors. Link: https://lore.kernel.org/r/20200524190814.17599-1-bharat@chelsio.com Signed-off-by: Potnuri Bharat Teja <bharat@chelsio.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 4c8a62c commit af92e4a

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎drivers/infiniband/hw/cxgb4/device.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -953,6 +953,7 @@ void c4iw_dealloc(struct uld_ctx *ctx)
953953
static void c4iw_remove(struct uld_ctx *ctx)
954954
{
955955
pr_debug("c4iw_dev %p\n", ctx->dev);
956+
debugfs_remove_recursive(ctx->dev->debugfs_root);
956957
c4iw_unregister_device(ctx->dev);
957958
c4iw_dealloc(ctx);
958959
}

0 commit comments

Comments
 (0)