We should compare revision of saved microcode with current, or else
revision_is_newer() always return false.
Orabug:
28190263
Signed-off-by: Zhenzhong Duan <zhenzhong.duan@oracle.com>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Signed-off-by: Brian Maly <brian.maly@oracle.com>
mc_saved_hdr = (struct microcode_header_intel *)mc_saved[i];
sig = mc_saved_hdr->sig;
pf = mc_saved_hdr->pf;
- new_rev = mc_hdr->rev;
+ new_rev = mc_saved_hdr->rev;
if (!get_matching_sig(sig, pf, new_rev, ucode_ptr))
continue;