diff options
author | Ingo Molnar <mingo@kernel.org> | 2012-09-20 10:57:38 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2012-09-20 10:57:38 +0200 |
commit | bd13178169d5fd17da3221b55ba313270393649a (patch) | |
tree | 69f7a75359909a6d71a0dfa1ca96fc8f0e7e1b67 /arch | |
parent | x86, microcode, AMD: Rewrite patch application procedure (diff) | |
parent | x86, microcode, AMD: Fix use after free in free_cache() (diff) | |
download | linux-bd13178169d5fd17da3221b55ba313270393649a.tar.xz linux-bd13178169d5fd17da3221b55ba313270393649a.zip |
Merge tag 'microcode_fix_3.7' of git://git.kernel.org/pub/scm/linux/kernel/git/bp/bp into x86/microcode
Pull microcode changes from Borislav Petkov:
"A small list usage correction from Dan Carpenter."
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/x86/kernel/microcode_amd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kernel/microcode_amd.c b/arch/x86/kernel/microcode_amd.c index 5511216b4434..7720ff5a9ee2 100644 --- a/arch/x86/kernel/microcode_amd.c +++ b/arch/x86/kernel/microcode_amd.c @@ -150,9 +150,9 @@ static void update_cache(struct ucode_patch *new_patch) static void free_cache(void) { - struct ucode_patch *p; + struct ucode_patch *p, *tmp; - list_for_each_entry_reverse(p, &pcache, plist) { + list_for_each_entry_safe(p, tmp, &pcache, plist) { __list_del(p->plist.prev, p->plist.next); kfree(p->data); kfree(p); |