summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Morton <akpm@linux-foundation.org>2024-04-16 15:40:29 -0700
committerAndrew Morton <akpm@linux-foundation.org>2024-04-16 15:40:29 -0700
commit1582cbe7f560bb50aaeeb3455c585dfc6c5b12f7 (patch)
treee2111aa2268d5f8558e968a87f452ac146bb3d9a
parentb7a38a5edc25fa579fb49d1c9e45993cc9d490ca (diff)
download25-new-1582cbe7f560bb50aaeeb3455c585dfc6c5b12f7.tar.gz
foo
-rw-r--r--patches/squashfs-check-the-inode-number-is-not-the-invalid-value-of-zero.patch4
1 files changed, 3 insertions, 1 deletions
diff --git a/patches/squashfs-check-the-inode-number-is-not-the-invalid-value-of-zero.patch b/patches/squashfs-check-the-inode-number-is-not-the-invalid-value-of-zero.patch
index 86c05e59e..abbdbe7e4 100644
--- a/patches/squashfs-check-the-inode-number-is-not-the-invalid-value-of-zero.patch
+++ b/patches/squashfs-check-the-inode-number-is-not-the-invalid-value-of-zero.patch
@@ -25,6 +25,8 @@ sequence of events:
This patch adds a sanity check which checks that the inode number
is not zero when the inode is created and returns -EINVAL if it is.
+[phillip@squashfs.org.uk: whitespace fix]
+ Link: https://lkml.kernel.org/r/20240409204723.446925-1-phillip@squashfs.org.uk
Link: https://lkml.kernel.org/r/20240408220206.435788-1-phillip@squashfs.org.uk
Signed-off-by: Phillip Lougher <phillip@squashfs.org.uk>
Reported-by: "Ubisectech Sirius" <bugreport@ubisectech.com>
@@ -44,7 +46,7 @@ Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
int err;
+ inode->i_ino = le32_to_cpu(sqsh_ino->inode_number);
-+ if(inode->i_ino == 0)
++ if (inode->i_ino == 0)
+ return -EINVAL;
+
err = squashfs_get_id(sb, le16_to_cpu(sqsh_ino->uid), &i_uid);