提交 77149367 编写于 作者: A Arnd Bergmann 提交者: Jonathan Corbet

microcode: BKL pushdown

Signed-off-by: NArnd Bergmann <arnd@arndb.de>
上级 b78032a7
......@@ -75,6 +75,7 @@
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/sched.h>
#include <linux/smp_lock.h>
#include <linux/cpumask.h>
#include <linux/module.h>
#include <linux/slab.h>
......@@ -422,6 +423,7 @@ static int do_microcode_update (void)
static int microcode_open (struct inode *unused1, struct file *unused2)
{
cycle_kernel_lock();
return capable(CAP_SYS_RAWIO) ? 0 : -EPERM;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册