Skip to content

Commit

Permalink
x86/alternatives: Sort local vars in apply_alternatives()
Browse files Browse the repository at this point in the history
In a reverse x-mas tree.

No functional changes.

Signed-off-by: Borislav Petkov (AMD) <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
  • Loading branch information
bp3tk0v committed Apr 9, 2024
1 parent c3a3cb5 commit 05d277c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/x86/kernel/alternative.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 05d277c

Please sign in to comment.