diff options
Diffstat (limited to 'nuttx/fs/mmap/fs_rammap.c')
-rw-r--r-- | nuttx/fs/mmap/fs_rammap.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nuttx/fs/mmap/fs_rammap.c b/nuttx/fs/mmap/fs_rammap.c index f43541cc9..8a75c3d61 100644 --- a/nuttx/fs/mmap/fs_rammap.c +++ b/nuttx/fs/mmap/fs_rammap.c @@ -139,7 +139,7 @@ FAR void *rammap(int fd, size_t length, off_t offset) /* Allocate a region of memory of the specified size */ - alloc = (FAR uint8_t *)kmalloc(sizeof(struct fs_rammap_s) + length); + alloc = (FAR uint8_t *)kumalloc(sizeof(struct fs_rammap_s) + length); if (!alloc) { fdbg("Region allocation failed, length: %d\n", (int)length); @@ -232,13 +232,13 @@ FAR void *rammap(int fd, size_t length, off_t offset) return map->addr; errout_with_region: - kfree(alloc); + kufree(alloc); errout: set_errno(err); return MAP_FAILED; errout_with_errno: - kfree(alloc); + kufree(alloc); return MAP_FAILED; } |