浏览代码

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
Ananya Gupta 4 年之前
父节点
当前提交
6d07f2a272
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      utils/pktlog/linux_ac.c

+ 2 - 1
utils/pktlog/linux_ac.c

@@ -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