diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2019-11-12 19:56:19 +0100 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2019-11-16 11:24:01 +0100 |
commit | 32f3bf67ee78332f2caec0984cb9d412cd0a3c23 (patch) | |
tree | 47bf912535016ecb14a1d2f14db0bb8e05256a6e /arch/x86/kernel/doublefault.c | |
parent | ae31cea86ab31f3d2e15d6cc8710754ad7330c9e (diff) |
x86/ioperm: Avoid bitmap allocation if no permissions are set
If ioperm() is invoked the first time and the @turn_on argument is 0, then
there is no point to allocate a bitmap just to clear permissions which are
not set.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/x86/kernel/doublefault.c')
0 files changed, 0 insertions, 0 deletions