mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 13:49:24 -04:00
qcacmn: Clear g_pktlog_pde after de-init pktlog
When switching from mission mode to FTM or Epping mode, g_pktlog_pde is not cleared after de-init. When switching back to mission mode, a warning is produced as the proc directory is not found. To fix this, g_pktlog_pde is cleared when pktlog is de-initialized. Change-Id: I1b9c9259c220a1981151dcb1e44a5621d7fd8204 CRs-Fixed: 2872045
This commit is contained in:
parent
5c11775fb3
commit
2ecd8b8b97
1 changed files with 2 additions and 1 deletions
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2012-2020 The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2012-2021 The Linux Foundation. All rights reserved.
|
||||
*
|
||||
* Permission to use, copy, modify, and/or distribute this software for
|
||||
* any purpose with or without fee is hereby granted, provided that the
|
||||
|
|
@ -1073,5 +1073,6 @@ void pktlogmod_exit(void *context)
|
|||
* pdev kill needs to be implemented
|
||||
*/
|
||||
remove_proc_entry(PKTLOG_PROC_DIR, NULL);
|
||||
g_pktlog_pde = NULL;
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Reference in a new issue