mirror of
https://github.com/apache/nuttx.git
synced 2026-05-28 03:45:50 +08:00
Rename kmalloc to kmm_malloc for consistency
This commit is contained in:
+1
-1
@@ -637,7 +637,7 @@ static int romfs_dup(FAR const struct file *oldp, FAR struct file *newp)
|
||||
* dup'ed file.
|
||||
*/
|
||||
|
||||
newrf = (FAR struct romfs_file_s *)kmalloc(sizeof(struct romfs_file_s));
|
||||
newrf = (FAR struct romfs_file_s *)kmm_malloc(sizeof(struct romfs_file_s));
|
||||
if (!newrf)
|
||||
{
|
||||
fdbg("Failed to allocate private data\n", ret);
|
||||
|
||||
@@ -560,7 +560,7 @@ int romfs_hwconfigure(struct romfs_mountpt_s *rm)
|
||||
|
||||
/* Allocate the device cache buffer for normal sector accesses */
|
||||
|
||||
rm->rm_buffer = (uint8_t*)kmalloc(rm->rm_hwsectorsize);
|
||||
rm->rm_buffer = (uint8_t*)kmm_malloc(rm->rm_hwsectorsize);
|
||||
if (!rm->rm_buffer)
|
||||
{
|
||||
return -ENOMEM;
|
||||
@@ -648,7 +648,7 @@ int romfs_fileconfigure(struct romfs_mountpt_s *rm, struct romfs_file_s *rf)
|
||||
|
||||
/* Create a file buffer to support partial sector accesses */
|
||||
|
||||
rf->rf_buffer = (uint8_t*)kmalloc(rm->rm_hwsectorsize);
|
||||
rf->rf_buffer = (uint8_t*)kmm_malloc(rm->rm_hwsectorsize);
|
||||
if (!rf->rf_buffer)
|
||||
{
|
||||
return -ENOMEM;
|
||||
|
||||
Reference in New Issue
Block a user