x86, microcode, AMD: Release firmware on error
authorBorislav Petkov <borislav.petkov@amd.com>
Thu, 30 Dec 2010 20:06:01 +0000 (21:06 +0100)
committerBorislav Petkov <borislav.petkov@amd.com>
Wed, 9 Feb 2011 15:05:32 +0000 (16:05 +0100)
commitffc7e8ac820bf9dd6106b01d3e64fecb5177cf43
tree50bf8031403e4b6da2f24aec3f85747ce3eed003
parent6c53cbfced048c421e4f72cb2183465f68fbc5e7
x86, microcode, AMD: Release firmware on error

When the ucode magic is wrong, for whatever reason, we don't release the
loaded firmware binary and its related resources. Make sure we do. Also,
fix function naming to fit this driver's convention and shorten variable
names.

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