From c7246187050f4dfa529e32c140296d5852eed01a Mon Sep 17 00:00:00 2001 From: Bowen Wang Date: Thu, 29 May 2025 11:03:57 +0800 Subject: [PATCH] drivers/rptun: should use KRN_HEAP to intialize the carveout heap Previous patch is not corrected: 5518135: mm/mm_heap: add nokasan flag in mm_heap_config_s structure | https://gerrit.pt.mioffice.cn/c/vela/nuttx/+/5518135 Because rptun do not want part of the share memory is used by the struct mm_heap_s to: 1. Save the share memory; 2. Some platfrom can't use atomic operation at the share memory, and struct mm_heap_s contains a mutex. Signed-off-by: Bowen Wang --- drivers/rptun/rptun.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/rptun/rptun.c b/drivers/rptun/rptun.c index c032782c75f..8bc2acc1d32 100644 --- a/drivers/rptun/rptun.c +++ b/drivers/rptun/rptun.c @@ -311,6 +311,7 @@ static int rptun_init_carveout(FAR struct rptun_priv_s *priv, } memset(&config, 0, sizeof(config)); + config.heap = KRN_HEAP; config.name = shmname; config.start = shmbase; config.size = shmlen;