diff options
author | KalimochoAz <calimochoazucarado@gmail.com> | 2012-04-02 22:49:12 +0200 |
---|---|---|
committer | KalimochoAz <calimochoazucarado@gmail.com> | 2012-04-02 22:49:12 +0200 |
commit | 65e6f0b461da6590830416b104c665f147f13178 (patch) | |
tree | cce33e89918b1763fda0f7806d2f39cfa0e7ebb5 /arch/x86/kernel/tls.c | |
parent | d8ca466b14410314d0c1dbe58ad57c44d789cd25 (diff) | |
parent | 8aa122f38398503c72a83f15c815e84e6e6e6890 (diff) | |
download | kernel_samsung_crespo-65e6f0b461da6590830416b104c665f147f13178.zip kernel_samsung_crespo-65e6f0b461da6590830416b104c665f147f13178.tar.gz kernel_samsung_crespo-65e6f0b461da6590830416b104c665f147f13178.tar.bz2 |
Merge branch 'linux-3.0.y' into cm.ics
Diffstat (limited to 'arch/x86/kernel/tls.c')
-rw-r--r-- | arch/x86/kernel/tls.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kernel/tls.c b/arch/x86/kernel/tls.c index 6bb7b85..bcfec2d 100644 --- a/arch/x86/kernel/tls.c +++ b/arch/x86/kernel/tls.c @@ -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; @@ -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; |