Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 43137
b: refs/heads/master
c: f475ff3
h: refs/heads/master
i:
  43135: 368ef0d
v: v3
  • Loading branch information
David Rientjes authored and Andi Kleen committed Dec 7, 2006
1 parent e99bac5 commit 64b11e4
Show file tree
Hide file tree
Showing 2 changed files with 2 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: 9dc452ba2d47f376987a99c0819833af0b46cc3f
refs/heads/master: f475ff352c5e05d473c462b97c3a13a5b803af5a
3 changes: 1 addition & 2 deletions trunk/arch/i386/kernel/msr.c
Original file line number Diff line number Diff line change
Expand Up @@ -195,15 +195,14 @@ static ssize_t msr_write(struct file *file, const char __user *buf,
{
const u32 __user *tmp = (const u32 __user *)buf;
u32 data[2];
size_t rv;
u32 reg = *ppos;
int cpu = iminor(file->f_dentry->d_inode);
int err;

if (count % 8)
return -EINVAL; /* Invalid chunk size */

for (rv = 0; count; count -= 8) {
for (; count; count -= 8) {
if (copy_from_user(&data, tmp, 8))
return -EFAULT;
err = do_wrmsr(cpu, reg, data[0], data[1]);
Expand Down

0 comments on commit 64b11e4

Please sign in to comment.