From 2ecd8b8b97c4112a9d09c6cf80119bfb3cf72b5d Mon Sep 17 00:00:00 2001 From: Ananya Gupta Date: Fri, 5 Feb 2021 23:33:39 +0530 Subject: [PATCH] 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 --- utils/pktlog/linux_ac.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/utils/pktlog/linux_ac.c b/utils/pktlog/linux_ac.c index 66c7f6bcb635..2cecda9b1e55 100644 --- a/utils/pktlog/linux_ac.c +++ b/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