mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-01-11 17:10:13 +00:00
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>
This commit is contained in:
parent
eb937201ba
commit
1ec760fb42
@ -1036,7 +1036,7 @@ static bool coredump_pipe(struct core_name *cn, struct coredump_params *cprm,
|
||||
|
||||
static bool coredump_write(struct core_name *cn,
|
||||
struct coredump_params *cprm,
|
||||
struct linux_binfmt *binfmt)
|
||||
const struct linux_binfmt *binfmt)
|
||||
{
|
||||
|
||||
if (dump_interrupted())
|
||||
@ -1093,7 +1093,7 @@ void vfs_coredump(const kernel_siginfo_t *siginfo)
|
||||
struct core_state core_state;
|
||||
struct core_name cn;
|
||||
struct mm_struct *mm = current->mm;
|
||||
struct linux_binfmt *binfmt = mm->binfmt;
|
||||
const struct linux_binfmt *binfmt = mm->binfmt;
|
||||
const struct cred *old_cred;
|
||||
int argc = 0;
|
||||
struct coredump_params cprm = {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user