Skip to content

Commit

Permalink
RDMA/ocrdma: Fixing ocrdma debugfs directory remove
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
selvintxavier authored and dledford committed Feb 5, 2016
1 parent aff3ead commit 7425f41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/infiniband/hw/ocrdma/ocrdma_stats.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 7425f41

Please sign in to comment.