]> Git Repo - linux.git/commitdiff
RDMA/ocrdma: Fixing ocrdma debugfs directory remove
authorSelvin Xavier <[email protected]>
Fri, 5 Feb 2016 14:36:40 +0000 (20:06 +0530)
committerDoug Ledford <[email protected]>
Fri, 5 Feb 2016 20:14:28 +0000 (15:14 -0500)
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]>
drivers/infiniband/hw/ocrdma/ocrdma_stats.c

index fc02e86849cedaa5e56941bedf3dbf3c9df167a8..255f774080a4aae08952df0374cdcb5a4063c8d1 100644 (file)
@@ -851,7 +851,7 @@ void ocrdma_rem_port_stats(struct ocrdma_dev *dev)
 {
        if (!dev->dir)
                return;
-       debugfs_remove(dev->dir);
+       debugfs_remove_recursive(dev->dir);
 }
 
 void ocrdma_init_debugfs(void)
This page took 0.062507 seconds and 4 git commands to generate.