x86, microcode, AMD: Extend ucode size verification
authorBorislav Petkov <borislav.petkov@amd.com>
Thu, 10 Feb 2011 11:19:47 +0000 (12:19 +0100)
committerBorislav Petkov <borislav.petkov@amd.com>
Thu, 10 Feb 2011 11:24:03 +0000 (12:24 +0100)
commit44d60c0f5c58c2168f31df9a481761451840eb54
treeda0e3401dd9aa206f8e3d2562799d4c21aa4cf56
parent258721ef34fce97a7a6ca9cebebb303827645868
x86, microcode, AMD: Extend ucode size verification

The different families have a different max size for the ucode patch,
adjust size checking to the family we're running on. Also, do not
vzalloc the max size of the ucode but only the actual size that is
passed on from the firmware loader.

Signed-off-by: Borislav Petkov <borislav.petkov@amd.com>
arch/x86/kernel/microcode_amd.c