Skip to content
Snippets Groups Projects
Commit 59a74990 authored by David Oberhollenzer's avatar David Oberhollenzer Committed by Richard Weinberger
Browse files

ubifs: Fix data node size for truncating uncompressed nodes


Currently, the function truncate_data_node only updates the
destination data node size if compression is used. For
uncompressed nodes, the old length is incorrectly retained.

This patch makes sure that the length is correctly set when
compression is disabled.

Fixes: 7799953b ("ubifs: Implement encrypt/decrypt for all IO")
Signed-off-by: default avatarDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>
Signed-off-by: default avatarRichard Weinberger <richard@nod.at>
parent f34e87f5
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment