x86, amd, microcode: Fix error path in apply_microcode_amd()
authorTorsten Kaiser <just.for.lkml@googlemail.com>
Tue, 23 Jul 2013 20:58:23 +0000 (22:58 +0200)
committerH. Peter Anvin <hpa@linux.intel.com>
Wed, 31 Jul 2013 15:37:14 +0000 (08:37 -0700)
commitd982057f631df04f8d78321084a1a71ca51f3364
treef2836aacbf9e141d55e6c0254bee647d0bedb086
parentf155b6303d938462aaa31a8c7d409f3ea9012713
x86, amd, microcode: Fix error path in apply_microcode_amd()

Return -1 (like Intels apply_microcode) when the loading fails, also
do not set the active microcode level on failure.

Signed-off-by: Torsten Kaiser <just.for.lkml@googlemail.com>
Link: http://lkml.kernel.org/r/20130723225823.2e4e7588@googlemail.com
Acked-by: Borislav Petkov <bp@suse.de>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
arch/x86/kernel/microcode_amd.c