Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 191535
b: refs/heads/master
c: 3f10940
h: refs/heads/master
i:
  191533: c585f5f
  191531: 8d9107b
  191527: 28a2c94
  191519: 759113a
v: v3
  • Loading branch information
Arnd Bergmann authored and Ingo Molnar committed Apr 14, 2010
1 parent ae9716c commit 289b9ec
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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: 938179b4f8cf8a4f11234ebf2dff2eb48400acfe
refs/heads/master: 3f10940e4fb69d312602078f2c5234206797ca31
4 changes: 2 additions & 2 deletions trunk/arch/x86/kernel/microcode_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -201,9 +201,9 @@ static int do_microcode_update(const void __user *buf, size_t size)
return error;
}

static int microcode_open(struct inode *unused1, struct file *unused2)
static int microcode_open(struct inode *inode, struct file *file)
{
return capable(CAP_SYS_RAWIO) ? 0 : -EPERM;
return capable(CAP_SYS_RAWIO) ? nonseekable_open(inode, file) : -EPERM;
}

static ssize_t microcode_write(struct file *file, const char __user *buf,
Expand Down

0 comments on commit 289b9ec

Please sign in to comment.