]> git.karo-electronics.de Git - karo-tx-linux.git/commit
x86, microcode: Ensure that module is only loaded on supported AMD CPUs
authorAndreas Herrmann <andreas.herrmann3@amd.com>
Thu, 12 Apr 2012 14:51:57 +0000 (16:51 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 7 May 2012 15:53:19 +0000 (08:53 -0700)
commit43b7582ef8c2d7ba30be64d90590b4ab287a1243
tree54a818fa8201f5f67a6f7df91ed39a32c4e69595
parent2069bb255cb1268452305e0d1cd5b92e1d18c47b
x86, microcode: Ensure that module is only loaded on supported AMD CPUs

commit 283c1f2558ef4a4411fe908364b15b73b6ab44cf upstream.

Exit early when there's no support for a particular CPU family. Also,
fixup the "no support for this CPU vendor" to be issued only when the
driver is attempted to be loaded on an unsupported vendor.

Cc: Tigran Aivazian <tigran@aivazian.fsnet.co.uk>
Signed-off-by: Andreas Herrmann <andreas.herrmann3@amd.com>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Link: http://lkml.kernel.org/r/20120411163849.GE4794@alberich.amd.com
[Boris: add a commit msg because Andreas is lazy]
Signed-off-by: Borislav Petkov <borislav.petkov@amd.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/kernel/microcode_amd.c
arch/x86/kernel/microcode_core.c