]> git.proxmox.com Git - mirror_ubuntu-disco-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)
commit200d3553163f6065a0f1f142f92d1cf716d586c2
tree4c3d9ab659b36059f8c9c8d65c148e0d406028e8
parent8feaa64a9a69652fdff87205f8a8cfe1bfd5b522
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