Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 297407
b: refs/heads/master
c: 8f0750f
h: refs/heads/master
i:
  297405: 88835e8
  297403: 9461999
  297399: 5aba0de
  297391: dc6e124
  297375: b2c92e8
  297343: 33b1e8f
v: v3
  • Loading branch information
Dan Carpenter authored and H. Peter Anvin committed Mar 28, 2012
1 parent a271a08 commit 4ce4685
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: 136d249ef7dbf0fefa292082cc40be1ea864cbd6
refs/heads/master: 8f0750f19789cf352d7e24a6cc50f2ab1b4f1372
4 changes: 2 additions & 2 deletions trunk/arch/x86/kernel/tls.c
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ int regset_tls_get(struct task_struct *target, const struct user_regset *regset,
{
const struct desc_struct *tls;

if (pos > GDT_ENTRY_TLS_ENTRIES * sizeof(struct user_desc) ||
if (pos >= GDT_ENTRY_TLS_ENTRIES * sizeof(struct user_desc) ||
(pos % sizeof(struct user_desc)) != 0 ||
(count % sizeof(struct user_desc)) != 0)
return -EINVAL;
Expand Down Expand Up @@ -198,7 +198,7 @@ int regset_tls_set(struct task_struct *target, const struct user_regset *regset,
struct user_desc infobuf[GDT_ENTRY_TLS_ENTRIES];
const struct user_desc *info;

if (pos > GDT_ENTRY_TLS_ENTRIES * sizeof(struct user_desc) ||
if (pos >= GDT_ENTRY_TLS_ENTRIES * sizeof(struct user_desc) ||
(pos % sizeof(struct user_desc)) != 0 ||
(count % sizeof(struct user_desc)) != 0)
return -EINVAL;
Expand Down

0 comments on commit 4ce4685

Please sign in to comment.