Skip to content

Commit 7714936

Browse files
arndbJonathan Corbet
authored andcommitted
microcode: BKL pushdown
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
1 parent b78032a commit 7714936

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎arch/x86/kernel/microcode.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@
7575
#include <linux/kernel.h>
7676
#include <linux/init.h>
7777
#include <linux/sched.h>
78+
#include <linux/smp_lock.h>
7879
#include <linux/cpumask.h>
7980
#include <linux/module.h>
8081
#include <linux/slab.h>
@@ -422,6 +423,7 @@ static int do_microcode_update (void)
422423

423424
static int microcode_open (struct inode *unused1, struct file *unused2)
424425
{
426+
cycle_kernel_lock();
425427
return capable(CAP_SYS_RAWIO) ? 0 : -EPERM;
426428
}
427429

0 commit comments

Comments
 (0)