projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3a4db72
)
coredump: auto cleanup argv
author
Christian Brauner
<brauner@kernel.org>
Thu, 12 Jun 2025 13:25:31 +0000
(15:25 +0200)
committer
Christian Brauner
<brauner@kernel.org>
Mon, 7 Jul 2025 10:24:50 +0000
(12:24 +0200)
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>
fs/coredump.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/coredump.c
b/fs/coredump.c
index dea4823b55b800d8ced1750821d2f07b7dc8ff5c..68da77d00170cf8ca486009de54b3033c84bef6a 100644
(file)
--- a/
fs/coredump.c
+++ b/
fs/coredump.c
@@
-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
@@
close_fail:
atomic_dec(&core_pipe_count);
}
fail_unlock:
- kfree(argv);
kfree(cn.corename);
coredump_finish(cn.core_dumped);
revert_creds(old_cred);