lkml.org 
[lkml]   [2019]   [Nov]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [x86/iopl PATCH] x86/ioperm: Fix use of deprecated config option
On Wed, 20 Nov 2019, Alexander Duyck wrote:
> From: Alexander Duyck <alexander.h.duyck@linux.intel.com>
>
> Fixes: 111e7b15cf10 ("x86/ioperm: Extend IOPL config to control ioperm() as well")
> Signed-off-by: Alexander Duyck <alexander.h.duyck@linux.intel.com>

Duh, yes.

Reviewed-by: Thomas Gleixner <tglx@linutronix.de>

> ---
> arch/x86/kernel/process.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/arch/x86/kernel/process.c b/arch/x86/kernel/process.c
> index 7964d7db9366..bd2a11ca5dd6 100644
> --- a/arch/x86/kernel/process.c
> +++ b/arch/x86/kernel/process.c
> @@ -382,8 +382,7 @@ void tss_update_io_bitmap(void)
> if (test_thread_flag(TIF_IO_BITMAP)) {
> struct thread_struct *t = &current->thread;
>
> - if (IS_ENABLED(CONFIG_X86_IOPL_EMULATION) &&
> - t->iopl_emul == 3) {
> + if (IS_ENABLED(CONFIG_X86_IOPL_IOPERM) && t->iopl_emul == 3) {
> *base = IO_BITMAP_OFFSET_VALID_ALL;
> } else {
> struct io_bitmap *iobm = t->io_bitmap;
>
>

\
 
 \ /
  Last update: 2019-11-20 23:34    [W:0.046 / U:1.180 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site