x86/kaslr: Fix incorrect i8254 outb() parameters
authorDaniel Drake <drake@endlessm.com>
Mon, 7 Jan 2019 03:40:24 +0000 (11:40 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 6 Feb 2019 16:34:52 +0000 (17:34 +0100)
commit444fc5b3c8040ec3b50b8df83f73184b6496d5e7
tree0fa526f86377d11ae8ea4e0597d7b34b730997a8
parentbed3eafc0d600d0efd71db8c13d20ac4292c6f16
x86/kaslr: Fix incorrect i8254 outb() parameters

commit 7e6fc2f50a3197d0e82d1c0e86282976c9e6c8a4 upstream.

The outb() function takes parameters value and port, in that order.  Fix
the parameters used in the kalsr i8254 fallback code.

Fixes: 5bfce5ef55cb ("x86, kaslr: Provide randomness functions")
Signed-off-by: Daniel Drake <drake@endlessm.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: bp@alien8.de
Cc: hpa@zytor.com
Cc: linux@endlessm.com
Cc: stable@vger.kernel.org
Link: https://lkml.kernel.org/r/20190107034024.15005-1-drake@endlessm.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/boot/compressed/aslr.c