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

megaraid: BKL pushdown

Signed-off-by: NArnd Bergmann <arnd@arndb.de>
上级 cad84238
......@@ -15,6 +15,7 @@
* Common management module
*/
#include <linux/sched.h>
#include <linux/smp_lock.h>
#include "megaraid_mm.h"
......@@ -96,6 +97,7 @@ mraid_mm_open(struct inode *inode, struct file *filep)
*/
if (!capable(CAP_SYS_ADMIN)) return (-EACCES);
cycle_kernel_lock();
return 0;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册