mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 15:11:48 -04:00
qcacld-3.0: set proc_dir to NULL
qcacld-2.0 to qcacld-3.0 propagation In athdiag_procfs_remove, set proc_dir to NULL after removing the directory. This is to avoid trying to remove the directory which is already removed. Change-Id: I01526f4b59ccc991d157c1028d4df5904338f182 CRs-Fixed: 868965
This commit is contained in:
parent
156278d9b8
commit
c40696df00
1 changed files with 7 additions and 4 deletions
|
|
@ -187,10 +187,13 @@ int athdiag_procfs_init(void *scn)
|
|||
*/
|
||||
void athdiag_procfs_remove(void)
|
||||
{
|
||||
remove_proc_entry(PROCFS_NAME, proc_dir);
|
||||
HIF_DBG("/proc/%s/%s removed", PROCFS_DIR, PROCFS_NAME);
|
||||
remove_proc_entry(PROCFS_DIR, NULL);
|
||||
HIF_DBG("/proc/%s removed", PROCFS_DIR);
|
||||
if (proc_dir != NULL) {
|
||||
remove_proc_entry(PROCFS_NAME, proc_dir);
|
||||
HIF_DBG("/proc/%s/%s removed", PROCFS_DIR, PROCFS_NAME);
|
||||
remove_proc_entry(PROCFS_DIR, NULL);
|
||||
HIF_DBG("/proc/%s removed", PROCFS_DIR);
|
||||
proc_dir = NULL;
|
||||
}
|
||||
}
|
||||
#else
|
||||
int athdiag_procfs_init(void *scn)
|
||||
|
|
|
|||
Loading…
Reference in a new issue