2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-20 03:04:01 +08:00

megaraid: BKL pushdown

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
This commit is contained in:
Arnd Bergmann 2008-05-20 19:16:13 +02:00 committed by Jonathan Corbet
parent cad8423805
commit f18f81daba

View File

@ -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;
}