ソースを参照

qcacld-3.0: prevent name conflicts for memdump procfs dir

Define PREFIX for procfs driver dump directory to prevent name
conflicts when loading different instances of the driver.

Change-Id: I05418287be9a6ecbb572a1deab610981ac348122
CRs-Fixed: 3268668
Zhaoyang Liu 2 年 前
コミット
a780ec1016
1 ファイル変更9 行追加1 行削除
  1. 9 1
      core/hdd/src/wlan_hdd_memdump.c

+ 9 - 1
core/hdd/src/wlan_hdd_memdump.c

@@ -33,7 +33,15 @@
 #include <sme_api.h>
 #include <wlan_hdd_includes.h>
 
-#define PROCFS_DRIVER_DUMP_DIR "debugdriver"
+#if defined(DYNAMIC_SINGLE_CHIP)
+#define PREFIX DYNAMIC_SINGLE_CHIP "/"
+#elif defined(MULTI_IF_NAME)
+#define PREFIX MULTI_IF_NAME "/"
+#else
+#define PREFIX ""
+#endif
+
+#define PROCFS_DRIVER_DUMP_DIR PREFIX "debugdriver"
 #define PROCFS_DRIVER_DUMP_NAME "driverdump"
 #define PROCFS_DRIVER_DUMP_PERM 0444