commit | 9fe8a6f5eed8fff6b2d7dbc99b911334e311732d | [log] [tgz] |
---|---|---|
author | Thomas Gleixner <tglx@linutronix.de> | Wed Jun 23 14:01:50 2021 +0200 |
committer | Borislav Petkov <bp@suse.de> | Wed Jun 23 17:52:41 2021 +0200 |
tree | 6130bcbe9413b23bf5556f1af3c78bdb1db1d78f | |
parent | 71ef453355a9197fcfd8ff22391a4ad7861d79e6 [diff] |
x86/fpu: Cleanup arch_set_user_pkey_access() The function does a sanity check with a WARN_ON_ONCE() but happily proceeds when the pkey argument is out of range. Clean it up. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Borislav Petkov <bp@suse.de> Reviewed-by: Borislav Petkov <bp@suse.de> Link: https://lkml.kernel.org/r/20210623121453.635764326@linutronix.de