Browse Source

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 <selvin.xavier@broadcom.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Selvin Xavier 9 years ago
parent
commit
7425f410ca
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/infiniband/hw/ocrdma/ocrdma_stats.c

+ 1 - 1
drivers/infiniband/hw/ocrdma/ocrdma_stats.c

@@ -851,7 +851,7 @@ void ocrdma_rem_port_stats(struct ocrdma_dev *dev)
 {
 {
 	if (!dev->dir)
 	if (!dev->dir)
 		return;
 		return;
-	debugfs_remove(dev->dir);
+	debugfs_remove_recursive(dev->dir);
 }
 }
 
 
 void ocrdma_init_debugfs(void)
 void ocrdma_init_debugfs(void)