diff options
Diffstat (limited to 'fs/ubifs/journal.c')
-rw-r--r-- | fs/ubifs/journal.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/ubifs/journal.c b/fs/ubifs/journal.c index 294519b98874..f3b620cbdda4 100644 --- a/fs/ubifs/journal.c +++ b/fs/ubifs/journal.c | |||
@@ -1298,7 +1298,9 @@ static int truncate_data_node(const struct ubifs_info *c, const struct inode *in | |||
1298 | goto out; | 1298 | goto out; |
1299 | } | 1299 | } |
1300 | 1300 | ||
1301 | if (compr_type != UBIFS_COMPR_NONE) { | 1301 | if (compr_type == UBIFS_COMPR_NONE) { |
1302 | out_len = *new_len; | ||
1303 | } else { | ||
1302 | err = ubifs_decompress(c, &dn->data, dlen, buf, &out_len, compr_type); | 1304 | err = ubifs_decompress(c, &dn->data, dlen, buf, &out_len, compr_type); |
1303 | if (err) | 1305 | if (err) |
1304 | goto out; | 1306 | goto out; |