Skip to content

Commit 7425f41

Browse files
selvintxavierdledford
authored andcommitted
RDMA/ocrdma: Fixing ocrdma debugfs directory remove
During the ocrdma device remove sequence, the debugfs directory tree of each ocrdma device needs to be removed. Use debugfs_remove_recursive instead of debugfs_remove. Signed-off-by: Selvin Xavier <[email protected]> Signed-off-by: Doug Ledford <[email protected]>
1 parent aff3ead commit 7425f41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/infiniband/hw/ocrdma/ocrdma_stats.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -851,7 +851,7 @@ void ocrdma_rem_port_stats(struct ocrdma_dev *dev)
851851
{
852852
if (!dev->dir)
853853
return;
854-
debugfs_remove(dev->dir);
854+
debugfs_remove_recursive(dev->dir);
855855
}
856856

857857
void ocrdma_init_debugfs(void)

0 commit comments

Comments
 (0)