Skip to content
Commit df71b091 authored by Richard Weinberger's avatar Richard Weinberger
Browse files

ubifs: Fail commit if TNC is obviously inconsistent



A reference to LEB 0 or with length 0 in the TNC
is never correct and could be caused by a memory corruption.
Don't write such a bad index node to the MTD.
Instead fail the commit which will turn UBIFS into read-only mode.

This is less painful than having the bad reference on the MTD
from where UBFIS has no chance to recover.

Signed-off-by: default avatarRichard Weinberger <richard@nod.at>
parent 319c1042
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