aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
Diffstat (limited to 'arch')
-rw-r--r--arch/x86/kernel/microcode.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/kernel/microcode.c b/arch/x86/kernel/microcode.c
index 69729e38b78a..9f0a994eef9b 100644
--- a/arch/x86/kernel/microcode.c
+++ b/arch/x86/kernel/microcode.c
@@ -75,6 +75,7 @@
75#include <linux/kernel.h> 75#include <linux/kernel.h>
76#include <linux/init.h> 76#include <linux/init.h>
77#include <linux/sched.h> 77#include <linux/sched.h>
78#include <linux/smp_lock.h>
78#include <linux/cpumask.h> 79#include <linux/cpumask.h>
79#include <linux/module.h> 80#include <linux/module.h>
80#include <linux/slab.h> 81#include <linux/slab.h>
@@ -422,6 +423,7 @@ out:
422 423
423static int microcode_open (struct inode *unused1, struct file *unused2) 424static int microcode_open (struct inode *unused1, struct file *unused2)
424{ 425{
426 cycle_kernel_lock();
425 return capable(CAP_SYS_RAWIO) ? 0 : -EPERM; 427 return capable(CAP_SYS_RAWIO) ? 0 : -EPERM;
426} 428}
427 429