mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-26 07:17:10 +00:00
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>
This commit is contained in:
parent
573dae50f5
commit
0989033d09
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue