summaryrefslogtreecommitdiff
path: root/drivers/infiniband/hw
diff options
context:
space:
mode:
authorPotnuri Bharat Teja <bharat@chelsio.com>2020-05-25 00:38:14 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-06-25 15:32:59 +0200
commit98fa991017981b52dcc4dc3924fc8e1e83e41bf4 (patch)
treef0fd028e0c1d94e37504dcf62f9aef90da1736ed /drivers/infiniband/hw
parent483269952a96fcc544b906dee1f5d8d1c947f4d9 (diff)
downloadlinux-98fa991017981b52dcc4dc3924fc8e1e83e41bf4.tar.gz
linux-98fa991017981b52dcc4dc3924fc8e1e83e41bf4.tar.bz2
linux-98fa991017981b52dcc4dc3924fc8e1e83e41bf4.zip
RDMA/iw_cxgb4: cleanup device debugfs entries on ULD remove
[ Upstream commit 49ea0c036ede81f126f1a9389d377999fdf5c5a1 ] 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>
Diffstat (limited to 'drivers/infiniband/hw')
-rw-r--r--drivers/infiniband/hw/cxgb4/device.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/cxgb4/device.c b/drivers/infiniband/hw/cxgb4/device.c
index c13c0ba30f63..af974a257086 100644
--- a/drivers/infiniband/hw/cxgb4/device.c
+++ b/drivers/infiniband/hw/cxgb4/device.c
@@ -945,6 +945,7 @@ void c4iw_dealloc(struct uld_ctx *ctx)
static void c4iw_remove(struct uld_ctx *ctx)
{
pr_debug("c4iw_dev %p\n", ctx->dev);
+ debugfs_remove_recursive(ctx->dev->debugfs_root);
c4iw_unregister_device(ctx->dev);
c4iw_dealloc(ctx);
}