diff options
author | Matthieu CASTET <matthieu.castet@parrot.com> | 2010-08-02 09:36:06 (GMT) |
---|---|---|
committer | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2010-08-03 05:58:09 (GMT) |
commit | c18de72fb3c72fdc5ca883910761af3f14d90d76 (patch) | |
tree | 52a5a452b4c5ccafec443013dda03da8343eab0d /fs/ubifs | |
parent | 6fb4374f6b1b3932f3acfe9d353568d3d8599cad (diff) | |
download | linux-fsl-qoriq-c18de72fb3c72fdc5ca883910761af3f14d90d76.tar.xz |
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>
Diffstat (limited to 'fs/ubifs')
-rw-r--r-- | fs/ubifs/super.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ubifs/super.c b/fs/ubifs/super.c index 010eea0..5fc5a09 100644 --- a/fs/ubifs/super.c +++ b/fs/ubifs/super.c @@ -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); |