Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 42989
b: refs/heads/master
c: d3ed11c
h: refs/heads/master
i:
  42987: 69dcef7
v: v3
  • Loading branch information
Paul Menage authored and Linus Torvalds committed Dec 7, 2006
1 parent df4c700 commit 2b2775f
Show file tree
Hide file tree
Showing 2 changed files with 4 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: 09b882520bbe01f2e5044642109c1c1d19fe3559
refs/heads/master: d3ed11c35635487d34ad476e1d6a66dd298ab2de
5 changes: 3 additions & 2 deletions trunk/kernel/cpuset.c
Original file line number Diff line number Diff line change
Expand Up @@ -1280,7 +1280,8 @@ typedef enum {
FILE_TASKLIST,
} cpuset_filetype_t;

static ssize_t cpuset_common_file_write(struct file *file, const char __user *userbuf,
static ssize_t cpuset_common_file_write(struct file *file,
const char __user *userbuf,
size_t nbytes, loff_t *unused_ppos)
{
struct cpuset *cs = __d_cs(file->f_dentry->d_parent);
Expand All @@ -1291,7 +1292,7 @@ static ssize_t cpuset_common_file_write(struct file *file, const char __user *us
int retval = 0;

/* Crude upper limit on largest legitimate cpulist user might write. */
if (nbytes > 100 + 6 * NR_CPUS)
if (nbytes > 100 + 6 * max(NR_CPUS, MAX_NUMNODES))
return -E2BIG;

/* +1 for nul-terminator */
Expand Down

0 comments on commit 2b2775f

Please sign in to comment.