~ubuntu-branches/ubuntu/precise/linux-lowlatency/precise

« back to all changes in this revision

Viewing changes to arch/x86/kernel/tls.c

  • Committer: Package Import Robot
  • Author(s): Luke Yelavich, Luke Yelavich, Upstream Kernel Changes
  • Date: 2012-04-04 18:49:36 UTC
  • Revision ID: package-import@ubuntu.com-20120404184936-tqu735914muv4wpg
Tags: 3.2.0-22.30
[ Luke Yelavich ]

* [Config] Update configs after rebase against Ubuntu-3.2.0-22.35

[ Upstream Kernel Changes ]

* Low-latency: Rebase against Ubuntu-3.2.0-22.35

Show diffs side-by-side

added added

removed removed

Lines of Context:
163
163
{
164
164
        const struct desc_struct *tls;
165
165
 
166
 
        if (pos > GDT_ENTRY_TLS_ENTRIES * sizeof(struct user_desc) ||
 
166
        if (pos >= GDT_ENTRY_TLS_ENTRIES * sizeof(struct user_desc) ||
167
167
            (pos % sizeof(struct user_desc)) != 0 ||
168
168
            (count % sizeof(struct user_desc)) != 0)
169
169
                return -EINVAL;
198
198
        struct user_desc infobuf[GDT_ENTRY_TLS_ENTRIES];
199
199
        const struct user_desc *info;
200
200
 
201
 
        if (pos > GDT_ENTRY_TLS_ENTRIES * sizeof(struct user_desc) ||
 
201
        if (pos >= GDT_ENTRY_TLS_ENTRIES * sizeof(struct user_desc) ||
202
202
            (pos % sizeof(struct user_desc)) != 0 ||
203
203
            (count % sizeof(struct user_desc)) != 0)
204
204
                return -EINVAL;