Skip to content

Commit 1ec760f

Browse files
committed
coredump: pass struct linux_binfmt as const
We don't actually modify it. Link: https://patch.msgid.link/20251103-work-creds-guards-prepare_creds-v1-6-b447b82f2c9b@kernel.org Signed-off-by: Christian Brauner <brauner@kernel.org>
1 parent eb93720 commit 1ec760f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

fs/coredump.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1036,7 +1036,7 @@ static bool coredump_pipe(struct core_name *cn, struct coredump_params *cprm,
10361036

10371037
static bool coredump_write(struct core_name *cn,
10381038
struct coredump_params *cprm,
1039-
struct linux_binfmt *binfmt)
1039+
const struct linux_binfmt *binfmt)
10401040
{
10411041

10421042
if (dump_interrupted())
@@ -1093,7 +1093,7 @@ void vfs_coredump(const kernel_siginfo_t *siginfo)
10931093
struct core_state core_state;
10941094
struct core_name cn;
10951095
struct mm_struct *mm = current->mm;
1096-
struct linux_binfmt *binfmt = mm->binfmt;
1096+
const struct linux_binfmt *binfmt = mm->binfmt;
10971097
const struct cred *old_cred;
10981098
int argc = 0;
10991099
struct coredump_params cprm = {

0 commit comments

Comments
 (0)