mirror of
https://github.com/apache/nuttx.git
synced 2026-05-23 23:28:29 +08:00
procfs/mempool: fix did not remove when pool not enabled
will at lease lead to extra code size cost, also possible dataabort. Signed-off-by: buxiasen <buxiasen@xiaomi.com>
This commit is contained in:
@@ -150,7 +150,7 @@ static const struct procfs_entry_s g_procfs_entries[] =
|
||||
{ "meminfo", &g_meminfo_operations, PROCFS_FILE_TYPE },
|
||||
#endif
|
||||
|
||||
#ifndef CONFIG_FS_PROCFS_EXCLUDE_MEMPOOL
|
||||
#if defined(CONFIG_MM_HEAP_MEMPOOL) && !defined(CONFIG_FS_PROCFS_EXCLUDE_MEMPOOL)
|
||||
{ "mempool", &g_mempool_operations, PROCFS_FILE_TYPE },
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user