summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2024-12-07 09:57:38 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2024-12-07 09:57:38 -0800
commita6db2a5d7df3e577c268ba7955eb48e913424599 (patch)
treee8c378ccd3529994750654d01552c9bcc5ff1bfc /fs
parentb5f217084ab3ddd4bdd03cd437f8e3b7e2d1f5b6 (diff)
parentb29bf7119d6bbfd04aabb8d82b060fe2a33ef890 (diff)
downloadlwn-a6db2a5d7df3e577c268ba7955eb48e913424599.tar.gz
lwn-a6db2a5d7df3e577c268ba7955eb48e913424599.zip
Merge tag 'ubifs-for-linus-6.13-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/rw/ubifs
Pull jffs2 fix from Richard Weinberger: - Fixup rtime compressor bounds checking * tag 'ubifs-for-linus-6.13-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/rw/ubifs: jffs2: Fix rtime decompressor
Diffstat (limited to 'fs')
-rw-r--r--fs/jffs2/compr_rtime.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/jffs2/compr_rtime.c b/fs/jffs2/compr_rtime.c
index 2b9ef713b844..3bd9d2f3bece 100644
--- a/fs/jffs2/compr_rtime.c
+++ b/fs/jffs2/compr_rtime.c
@@ -95,7 +95,7 @@ static int jffs2_rtime_decompress(unsigned char *data_in,
positions[value]=outpos;
if (repeat) {
- if ((outpos + repeat) >= destlen) {
+ if ((outpos + repeat) > destlen) {
return 1;
}
if (backoffs + repeat >= outpos) {