Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 288113
b: refs/heads/master
c: 5189fa1
h: refs/heads/master
i:
  288111: c706aaa
v: v3
  • Loading branch information
H. Peter Anvin authored and Linus Torvalds committed Mar 2, 2012
1 parent 6ae37c6 commit 671e56e
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: c8e252586f8d5de906385d8cf6385fee289a825e
refs/heads/master: 5189fa19a4b2b4c3bec37c3a019d446148827717
4 changes: 2 additions & 2 deletions trunk/include/linux/regset.h
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ static inline int copy_regset_to_user(struct task_struct *target,
return -EOPNOTSUPP;

if (!access_ok(VERIFY_WRITE, data, size))
return -EIO;
return -EFAULT;

return regset->get(target, regset, offset, size, NULL, data);
}
Expand All @@ -365,7 +365,7 @@ static inline int copy_regset_from_user(struct task_struct *target,
return -EOPNOTSUPP;

if (!access_ok(VERIFY_READ, data, size))
return -EIO;
return -EFAULT;

return regset->set(target, regset, offset, size, NULL, data);
}
Expand Down

0 comments on commit 671e56e

Please sign in to comment.