Skip to content

Commit

Permalink
megaraid: BKL pushdown
Browse files Browse the repository at this point in the history
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
  • Loading branch information
Arnd Bergmann authored and Jonathan Corbet committed Jun 20, 2008
1 parent cad8423 commit f18f81d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/scsi/megaraid/megaraid_mm.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
* Common management module
*/
#include <linux/sched.h>
#include <linux/smp_lock.h>
#include "megaraid_mm.h"


Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit f18f81d

Please sign in to comment.