diff options
author | Matthieu CASTET <matthieu.castet@parrot.com> | 2010-08-02 05:36:06 -0400 |
---|---|---|
committer | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2010-08-03 01:58:09 -0400 |
commit | c18de72fb3c72fdc5ca883910761af3f14d90d76 (patch) | |
tree | 52a5a452b4c5ccafec443013dda03da8343eab0d /fs | |
parent | 6fb4374f6b1b3932f3acfe9d353568d3d8599cad (diff) |
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')
-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 010eea009036..5fc5a0988970 100644 --- a/fs/ubifs/super.c +++ b/fs/ubifs/super.c | |||
@@ -1320,7 +1320,7 @@ static int mount_ubifs(struct ubifs_info *c) | |||
1320 | */ | 1320 | */ |
1321 | err = ubifs_leb_unmap(c, c->gc_lnum); | 1321 | err = ubifs_leb_unmap(c, c->gc_lnum); |
1322 | if (err) | 1322 | if (err) |
1323 | return err; | 1323 | goto out_orphans; |
1324 | } | 1324 | } |
1325 | 1325 | ||
1326 | err = dbg_check_lprops(c); | 1326 | err = dbg_check_lprops(c); |