mirror of
https://github.com/torvalds/linux.git
synced 2026-05-28 09:04:39 +02:00
coredump: auto cleanup argv
to prepare for a simpler exit path. Link: https://lore.kernel.org/20250612-work-coredump-massage-v1-17-315c0c34ba94@kernel.org Signed-off-by: Christian Brauner <brauner@kernel.org>
This commit is contained in:
parent
3a4db72d03
commit
4a9f5d7fb6
|
|
@ -1076,7 +1076,7 @@ void vfs_coredump(const kernel_siginfo_t *siginfo)
|
|||
const struct cred *old_cred;
|
||||
struct cred *cred;
|
||||
int retval = 0;
|
||||
size_t *argv = NULL;
|
||||
size_t *argv __free(kfree) = NULL;
|
||||
int argc = 0;
|
||||
struct coredump_params cprm = {
|
||||
.siginfo = siginfo,
|
||||
|
|
@ -1189,7 +1189,6 @@ void vfs_coredump(const kernel_siginfo_t *siginfo)
|
|||
atomic_dec(&core_pipe_count);
|
||||
}
|
||||
fail_unlock:
|
||||
kfree(argv);
|
||||
kfree(cn.corename);
|
||||
coredump_finish(cn.core_dumped);
|
||||
revert_creds(old_cred);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user