Commit f18f81da authored by Arnd Bergmann's avatar Arnd Bergmann Committed by Jonathan Corbet

megaraid: BKL pushdown

Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
parent cad84238
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
* Common management module * Common management module
*/ */
#include <linux/sched.h> #include <linux/sched.h>
#include <linux/smp_lock.h>
#include "megaraid_mm.h" #include "megaraid_mm.h"
...@@ -96,6 +97,7 @@ mraid_mm_open(struct inode *inode, struct file *filep) ...@@ -96,6 +97,7 @@ mraid_mm_open(struct inode *inode, struct file *filep)
*/ */
if (!capable(CAP_SYS_ADMIN)) return (-EACCES); if (!capable(CAP_SYS_ADMIN)) return (-EACCES);
cycle_kernel_lock();
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment