diff options
author | Alexander Dahl <ada@thorsis.com> | 2024-07-03 12:12:57 +0200 |
---|---|---|
committer | Heiko Schocher <hs@denx.de> | 2024-08-10 11:54:20 +0200 |
commit | 0989033d0968878bd8f5d42d4f507dc9a806cfe4 (patch) | |
tree | d3573910a16148a80678820083b680debe2f8bde | |
parent | 573dae50f5fe2c84ff8329bd8dbf54d234952579 (diff) | |
download | u-boot-0989033d0968878bd8f5d42d4f507dc9a806cfe4.tar.gz u-boot-0989033d0968878bd8f5d42d4f507dc9a806cfe4.tar.bz2 u-boot-0989033d0968878bd8f5d42d4f507dc9a806cfe4.zip |
fs: ubifs: Make k(z)alloc/kfree symmetric
Although kfree() is in fact only a slim wrapper to free() in U-Boot, use
kfree() here, because those structs where allocated with kalloc() or
kzalloc().
Signed-off-by: Alexander Dahl <ada@thorsis.com>
-rw-r--r-- | fs/ubifs/super.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/ubifs/super.c b/fs/ubifs/super.c index bbbbeb5ee1..03ed603d0e 100644 --- a/fs/ubifs/super.c +++ b/fs/ubifs/super.c @@ -1762,8 +1762,8 @@ void ubifs_umount(struct ubifs_info *c) mutex_unlock(&c->umount_mutex); /* Finally free U-Boot's global copy of superblock */ if (ubifs_sb != NULL) { - free(ubifs_sb->s_fs_info); - free(ubifs_sb); + kfree(ubifs_sb->s_fs_info); + kfree(ubifs_sb); ubifs_sb = NULL; } #endif |