Skip to content
Commit 734c5843 authored by Richard Weinberger's avatar Richard Weinberger Committed by Paul Gortmaker
Browse files

ubifs: Don't leak orphans on memory during commit

commit 8009ce95 upstream.

If an orphan has child orphans (xattrs), and due
to a commit the parent orpahn cannot get free()'ed immediately,
put also all child orphans on the erase list.
Otherwise UBIFS will free() them only upon unmount and we
waste memory.

Fixes: 988bec41

 ("ubifs: orphan: Handle xattrs like files")
Signed-off-by: default avatarRichard Weinberger <richard@nod.at>
Signed-off-by: default avatarPaul Gortmaker <paul.gortmaker@windriver.com>
parent 7ae9bde7
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment