mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 05:39:54 -04:00
Merge "mhi: dev: netdev: Update logic for valid access of dentry variable"
This commit is contained in:
commit
1fbbbe4089
1 changed files with 11 additions and 3 deletions
|
|
@ -918,9 +918,14 @@ static void mhi_netdev_create_debugfs_dir(void)
|
|||
dentry = debugfs_create_dir(MHI_NETDEV_DRIVER_NAME, 0);
|
||||
}
|
||||
|
||||
static void mhi_netdev_debugfs_remove(void)
|
||||
{
|
||||
debugfs_remove_recursive(dentry);
|
||||
}
|
||||
|
||||
#else
|
||||
|
||||
static void mhi_netdev_create_debugfs(struct mhi_netdev_private *mhi_netdev)
|
||||
static void mhi_netdev_create_debugfs(struct mhi_netdev *mhi_netdev)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
@ -928,6 +933,10 @@ static void mhi_netdev_create_debugfs_dir(void)
|
|||
{
|
||||
}
|
||||
|
||||
static void mhi_netdev_debugfs_remove(void)
|
||||
{
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
static void mhi_netdev_remove(struct mhi_device *mhi_dev)
|
||||
|
|
@ -1141,8 +1150,7 @@ module_init(mhi_netdev_init);
|
|||
|
||||
static void __exit mhi_netdev_exit(void)
|
||||
{
|
||||
debugfs_remove_recursive(dentry);
|
||||
|
||||
mhi_netdev_debugfs_remove();
|
||||
mhi_driver_unregister(&mhi_netdev_driver);
|
||||
}
|
||||
module_exit(mhi_netdev_exit);
|
||||
|
|
|
|||
Loading…
Reference in a new issue