Commit bd131781 authored by Ingo Molnar's avatar Ingo Molnar

Merge tag 'microcode_fix_3.7' of...

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: default avatarIngo Molnar <mingo@kernel.org>
parents 2efb05e8 2d297480
...@@ -150,9 +150,9 @@ static void update_cache(struct ucode_patch *new_patch) ...@@ -150,9 +150,9 @@ static void update_cache(struct ucode_patch *new_patch)
static void free_cache(void) 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); __list_del(p->plist.prev, p->plist.next);
kfree(p->data); kfree(p->data);
kfree(p); kfree(p);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment