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:
cfd6c12
)
coredump: order auto cleanup variables at the top
author
Christian Brauner
<brauner@kernel.org>
Thu, 12 Jun 2025 13:25:36 +0000
(15:25 +0200)
committer
Christian Brauner
<brauner@kernel.org>
Mon, 7 Jul 2025 10:24:51 +0000
(12:24 +0200)
so they're easy to spot.
Link:
https://lore.kernel.org/20250612-work-coredump-massage-v1-22-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 9c028ef087d4ce9c9fc07dbf70cde3eeaea02e3a..d3f09bf71f5ff14dfb0cdb8b7899d9fab3e040e9 100644
(file)
--- a/
fs/coredump.c
+++ b/
fs/coredump.c
@@
-1081,14
+1081,14
@@
static void coredump_cleanup(struct core_name *cn, struct coredump_params *cprm)
void vfs_coredump(const kernel_siginfo_t *siginfo)
{
+ struct cred *cred __free(put_cred) = NULL;
+ size_t *argv __free(kfree) = NULL;
struct core_state core_state;
struct core_name cn;
struct mm_struct *mm = current->mm;
struct linux_binfmt * binfmt;
const struct cred *old_cred;
- struct cred *cred __free(put_cred) = NULL;
int retval = 0;
- size_t *argv __free(kfree) = NULL;
int argc = 0;
struct coredump_params cprm = {
.siginfo = siginfo,