summaryrefslogtreecommitdiff
path: root/nuttx/fs/smartfs/smartfs_smart.c
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/fs/smartfs/smartfs_smart.c')
-rw-r--r--nuttx/fs/smartfs/smartfs_smart.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nuttx/fs/smartfs/smartfs_smart.c b/nuttx/fs/smartfs/smartfs_smart.c
index 5b967bb4a..d58c0f0e5 100644
--- a/nuttx/fs/smartfs/smartfs_smart.c
+++ b/nuttx/fs/smartfs/smartfs_smart.c
@@ -1337,7 +1337,7 @@ static int smartfs_bind(FAR struct inode *blkdriver, const void *data,
/* Create an instance of the mountpt state structure */
- fs = (struct smartfs_mountpt_s *)kzalloc(sizeof(struct smartfs_mountpt_s));
+ fs = (struct smartfs_mountpt_s *)kmm_zalloc(sizeof(struct smartfs_mountpt_s));
if (!fs)
{
return -ENOMEM;