Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 73664
b: refs/heads/master
c: 6fc48af
h: refs/heads/master
v: v3
  • Loading branch information
Tetsuo Handa authored and Linus Torvalds committed Nov 15, 2007
1 parent 7a4170a commit a604840
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: dbd0cf48842700c3a694dcd32b29e63e27f37acc
refs/heads/master: 6fc48af82cef55546d640778698943b6227b7fb0
4 changes: 4 additions & 0 deletions trunk/kernel/sysctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -2620,6 +2620,10 @@ static int deprecated_sysctl_warning(struct __sysctl_args *args)
int name[CTL_MAXNAME];
int i;

/* Check args->nlen. */
if (args->nlen < 0 || args->nlen > CTL_MAXNAME)
return -ENOTDIR;

/* Read in the sysctl name for better debug message logging */
for (i = 0; i < args->nlen; i++)
if (get_user(name[i], args->name + i))
Expand Down

0 comments on commit a604840

Please sign in to comment.