x86, microcode, AMD: Fix section header size check
authorBorislav Petkov <borislav.petkov@amd.com>
Wed, 15 Jun 2011 13:34:57 +0000 (15:34 +0200)
committerBorislav Petkov <borislav.petkov@amd.com>
Thu, 16 Jun 2011 15:23:54 +0000 (17:23 +0200)
commit40b7f3dfcc5ab211a0b8d916751bb22ac2290806
tree352f5d8d18e52149d3048981aaba11e0263251cf
parent86b445676d13f520ef9ab7aebe933aa6684ce84c
x86, microcode, AMD: Fix section header size check

The ucode size check has to take the section header size into account
too when sanity checking the section length. Shorten and clarify define
names, while at it.

Caught-by: Ben Hutchings <ben@decadent.org.uk>
Link: http://lkml.kernel.org/r/1302752223.5282.674.camel@localhost
Signed-off-by: Borislav Petkov <borislav.petkov@amd.com>
arch/x86/kernel/microcode_amd.c