Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 148900
b: refs/heads/master
c: b170204
h: refs/heads/master
v: v3
  • Loading branch information
Andi Kleen authored and H. Peter Anvin committed May 28, 2009
1 parent c66768f commit 1073dca
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 32561696c23028596f24b353d98f2e23b58f91f7
refs/heads/master: b170204ddb7844ffff62d2d537b20c0eeb97725e
4 changes: 0 additions & 4 deletions trunk/arch/x86/kernel/cpu/mcheck/mce.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
#include <linux/ratelimit.h>
#include <linux/kallsyms.h>
#include <linux/rcupdate.h>
#include <linux/smp_lock.h>
#include <linux/kobject.h>
#include <linux/kdebug.h>
#include <linux/kernel.h>
Expand Down Expand Up @@ -791,12 +790,10 @@ static int open_exclu; /* already open exclusive? */

static int mce_open(struct inode *inode, struct file *file)
{
lock_kernel();
spin_lock(&mce_state_lock);

if (open_exclu || (open_count && (file->f_flags & O_EXCL))) {
spin_unlock(&mce_state_lock);
unlock_kernel();

return -EBUSY;
}
Expand All @@ -806,7 +803,6 @@ static int mce_open(struct inode *inode, struct file *file)
open_count++;

spin_unlock(&mce_state_lock);
unlock_kernel();

return nonseekable_open(inode, file);
}
Expand Down

0 comments on commit 1073dca

Please sign in to comment.