]> git.baikalelectronics.ru Git - kernel.git/commit
x86/microcode/AMD: Sanitize apply_microcode_early_amd()
authorBorislav Petkov <bp@suse.de>
Sun, 18 Dec 2016 16:44:12 +0000 (17:44 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Mon, 19 Dec 2016 09:46:20 +0000 (10:46 +0100)
commitf93f50e51807d8bf038cb43c13218d987a0dd6fc
tree4c3d9ab659b36059f8c9c8d65c148e0d406028e8
parentf46a1c9d7f07acff669b22bee6eab185f8f77f91
x86/microcode/AMD: Sanitize apply_microcode_early_amd()

Make it simply return bool to denote whether it found a container or not
and return the pointer to the container and its size in the handed-in
container pointer instead, as returning a struct was just silly.

Signed-off-by: Borislav Petkov <bp@suse.de>
Cc: Jürgen Gross <jgross@suse.com>
Cc: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Link: http://lkml.kernel.org/r/20161218164414.9649-3-bp@alien8.de
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/kernel/cpu/microcode/amd.c