summaryrefslogtreecommitdiff
path: root/nuttx/fs/smartfs/smartfs_utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/fs/smartfs/smartfs_utils.c')
-rw-r--r--nuttx/fs/smartfs/smartfs_utils.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/nuttx/fs/smartfs/smartfs_utils.c b/nuttx/fs/smartfs/smartfs_utils.c
index 3c41ce524..86b43cb09 100644
--- a/nuttx/fs/smartfs/smartfs_utils.c
+++ b/nuttx/fs/smartfs/smartfs_utils.c
@@ -340,8 +340,8 @@ int smartfs_unmount(struct smartfs_mountpt_s *fs)
/* Free the buffers */
- kfree(fs->fs_rwbuffer);
- kfree(fs->fs_workbuffer);
+ kmm_free(fs->fs_rwbuffer);
+ kmm_free(fs->fs_workbuffer);
/* Set the buffer's to invalid value to catch program bugs */
@@ -378,8 +378,8 @@ int smartfs_unmount(struct smartfs_mountpt_s *fs)
/* Release the mountpoint private data */
- kfree(fs->fs_rwbuffer);
- kfree(fs->fs_workbuffer);
+ kmm_free(fs->fs_rwbuffer);
+ kmm_free(fs->fs_workbuffer);
#endif
return ret;