Skip to content

Commit ae20958

Browse files
committed
coredump: order auto cleanup variables at the top
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>
1 parent cfd6c12 commit ae20958

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
@@ -1081,14 +1081,14 @@ static void coredump_cleanup(struct core_name *cn, struct coredump_params *cprm)
10811081

10821082
void vfs_coredump(const kernel_siginfo_t *siginfo)
10831083
{
1084+
struct cred *cred __free(put_cred) = NULL;
1085+
size_t *argv __free(kfree) = NULL;
10841086
struct core_state core_state;
10851087
struct core_name cn;
10861088
struct mm_struct *mm = current->mm;
10871089
struct linux_binfmt * binfmt;
10881090
const struct cred *old_cred;
1089-
struct cred *cred __free(put_cred) = NULL;
10901091
int retval = 0;
1091-
size_t *argv __free(kfree) = NULL;
10921092
int argc = 0;
10931093
struct coredump_params cprm = {
10941094
.siginfo = siginfo,

0 commit comments

Comments
 (0)