]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
x86/alternatives: Sort local vars in apply_alternatives()
authorBorislav Petkov (AMD) <bp@alien8.de>
Tue, 30 Jan 2024 10:59:41 +0000 (11:59 +0100)
committerBorislav Petkov (AMD) <bp@alien8.de>
Tue, 9 Apr 2024 16:16:57 +0000 (18:16 +0200)
In a reverse x-mas tree.

No functional changes.

Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Link: https://lore.kernel.org/r/20240130105941.19707-5-bp@alien8.de
arch/x86/kernel/alternative.c

index 67dd7c371d28a57c879168f7c752a315658771df..7555c15b71830fce9c32cc06c0ecc7cfc48f90fa 100644 (file)
@@ -445,9 +445,9 @@ static int alt_replace_call(u8 *instr, u8 *insn_buff, struct alt_instr *a)
 void __init_or_module noinline apply_alternatives(struct alt_instr *start,
                                                  struct alt_instr *end)
 {
-       struct alt_instr *a;
-       u8 *instr, *replacement;
        u8 insn_buff[MAX_PATCH_LEN];
+       u8 *instr, *replacement;
+       struct alt_instr *a;
 
        DPRINTK(ALT, "alt table %px, -> %px", start, end);