aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/block/mtip32xx/mtip32xx.c
diff options
context:
space:
mode:
authorAsai Thambi S P <asamymuthupa@micron.com>2014-04-16 23:30:16 -0400
committerJens Axboe <axboe@fb.com>2014-04-22 21:48:51 -0400
commitaf5ded8ccf21627f9614afc03b356712666ed225 (patch)
tree65e2ec5d40349f665eeb342fc0f9aaf9fb52776b /drivers/block/mtip32xx/mtip32xx.c
parent670a641420a3d9586eebe7429dfeec4e7ed447aa (diff)
mtip32xx: Remove dfs_parent after pci unregister
In module exit, dfs_parent and it's subtree were removed before unregistering with pci. When debugfs entry for each device is attempted to remove in pci_remove() context, they don't exist, as dfs_parent and its children were already ripped apart. Modified to first unregister with pci and then remove dfs_parent. Signed-off-by: Asai Thambi S P <asamymuthupa@micron.com> Cc: stable@kernel.org Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'drivers/block/mtip32xx/mtip32xx.c')
-rw-r--r--drivers/block/mtip32xx/mtip32xx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/block/mtip32xx/mtip32xx.c b/drivers/block/mtip32xx/mtip32xx.c
index 51628eb6f445..27641bc83962 100644
--- a/drivers/block/mtip32xx/mtip32xx.c
+++ b/drivers/block/mtip32xx/mtip32xx.c
@@ -4939,13 +4939,13 @@ static int __init mtip_init(void)
4939 */ 4939 */
4940static void __exit mtip_exit(void) 4940static void __exit mtip_exit(void)
4941{ 4941{
4942 debugfs_remove_recursive(dfs_parent);
4943
4944 /* Release the allocated major block device number. */ 4942 /* Release the allocated major block device number. */
4945 unregister_blkdev(mtip_major, MTIP_DRV_NAME); 4943 unregister_blkdev(mtip_major, MTIP_DRV_NAME);
4946 4944
4947 /* Unregister the PCI driver. */ 4945 /* Unregister the PCI driver. */
4948 pci_unregister_driver(&mtip_pci_driver); 4946 pci_unregister_driver(&mtip_pci_driver);
4947
4948 debugfs_remove_recursive(dfs_parent);
4949} 4949}
4950 4950
4951MODULE_AUTHOR("Micron Technology, Inc"); 4951MODULE_AUTHOR("Micron Technology, Inc");