RDMA/ocrdma: Avoid a possible crash in ocrdma_rem_port_stats
authorSelvin Xavier <selvin.xavier@avagotech.com>
Tue, 20 Oct 2015 08:47:57 +0000 (14:17 +0530)
committerDoug Ledford <dledford@redhat.com>
Wed, 21 Oct 2015 21:28:19 +0000 (17:28 -0400)
commitfb16d8c49e6fa2791620cf2cd61d6daa123ed51e
tree469200731449a7f4a25e9c6bb3bbfbc91759bab6
parent5a85f5e9d41bfd8a1fb5136d5ea2815fc75a5271
RDMA/ocrdma: Avoid a possible crash in ocrdma_rem_port_stats

debugfs_remove should be called before freeing the driver
stats resources to avoid any crash during ocrdma_remove.

Signed-off-by: Devesh Sharma <devesh.sharma@avagotech.com>
Signed-off-by: Selvin Xavier <selvin.xavier@avagotech.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/ocrdma/ocrdma_stats.c