mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-25 02:09:42 +00:00
UBIFS: fix a memory leak on error path.
In 'mount_ubifs()', in case of 'ubifs_leb_unmap()' falure, free allocated resources. Signed-off-by: Matthieu CASTET <matthieu.castet@parrot.com> Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
This commit is contained in:
parent
6fb4374f6b
commit
c18de72fb3
1 changed files with 1 additions and 1 deletions
|
@ -1320,7 +1320,7 @@ static int mount_ubifs(struct ubifs_info *c)
|
|||
*/
|
||||
err = ubifs_leb_unmap(c, c->gc_lnum);
|
||||
if (err)
|
||||
return err;
|
||||
goto out_orphans;
|
||||
}
|
||||
|
||||
err = dbg_check_lprops(c);
|
||||
|
|
Loading…
Reference in a new issue