diff options
author | David Oberhollenzer <[email protected]> | 2017-05-17 10:36:45 +0200 |
---|---|---|
committer | Richard Weinberger <[email protected]> | 2017-07-14 22:49:06 +0200 |
commit | 59a74990f85bb372c9117e40c6cd27693b6df670 (patch) | |
tree | dc30367f55104dfd9ac7989dda1ec8cbeae630e8 /lib/sg_split.c | |
parent | f34e87f58dabc31eb69f61cf4a79e951d4176743 (diff) |
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: 7799953b34d1 ("ubifs: Implement encrypt/decrypt for all IO")
Signed-off-by: David Oberhollenzer <[email protected]>
Signed-off-by: Richard Weinberger <[email protected]>
Diffstat (limited to 'lib/sg_split.c')
0 files changed, 0 insertions, 0 deletions