mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
UBIFS: fix remount error path
Dan's "smatch" checker found out that there was a bug in the error path of the 'ubifs_remount_rw()' function. Instead of jumping to the "out" label which cleans-things up, we just returned. This patch fixes the problem. Reported-by: Dan Carpenter <[email protected]> Signed-off-by: Artem Bityutskiy <[email protected]>
This commit is contained in:
parent
89ca3b8819
commit
fcdd57c890
1 changed files with 1 additions and 1 deletions
|
|
@ -1556,7 +1556,7 @@ static int ubifs_remount_rw(struct ubifs_info *c)
|
|||
if (c->space_fixup) {
|
||||
err = ubifs_fixup_free_space(c);
|
||||
if (err)
|
||||
return err;
|
||||
goto out;
|
||||
}
|
||||
|
||||
err = check_free_space(c);
|
||||
|
|
|
|||
Loading…
Reference in a new issue