From 42d181307ea7ea4077e20a6b2e3977a4b502a08d Mon Sep 17 00:00:00 2001 From: guozhanxin Date: Thu, 20 Sep 2018 12:03:29 +0800 Subject: [PATCH] [components][dfs][ramfs] add RT_Object_Class_MemHeap flag for ramfs->memheap --- components/dfs/filesystems/ramfs/dfs_ramfs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/components/dfs/filesystems/ramfs/dfs_ramfs.c b/components/dfs/filesystems/ramfs/dfs_ramfs.c index c4b0f44d6d..d7911a622d 100644 --- a/components/dfs/filesystems/ramfs/dfs_ramfs.c +++ b/components/dfs/filesystems/ramfs/dfs_ramfs.c @@ -453,6 +453,7 @@ struct dfs_ramfs* dfs_ramfs_create(rt_uint8_t *pool, rt_size_t size) /* initialize ramfs object */ ramfs->magic = RAMFS_MAGIC; + ramfs->memheap.parent.type = RT_Object_Class_MemHeap | RT_Object_Class_Static; /* initialize root directory */ memset(&(ramfs->root), 0x00, sizeof(ramfs->root)); -- GitLab