mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-10-03 11:41:38 +02:00
Merge branch 'master' of git://git.denx.de/u-boot-ubi
* 'master' of git://git.denx.de/u-boot-ubi: ubifs: Fix bad free() sequence in ubifs_finddir()
This commit is contained in:
commit
98e99e5a48
@ -360,6 +360,8 @@ out:
|
|||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (file->private_data)
|
||||||
|
kfree(file->private_data);
|
||||||
if (file)
|
if (file)
|
||||||
free(file);
|
free(file);
|
||||||
if (dentry)
|
if (dentry)
|
||||||
@ -367,10 +369,6 @@ out:
|
|||||||
if (dir)
|
if (dir)
|
||||||
free(dir);
|
free(dir);
|
||||||
|
|
||||||
if (file->private_data)
|
|
||||||
kfree(file->private_data);
|
|
||||||
file->private_data = NULL;
|
|
||||||
file->f_pos = 2;
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user