Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 19982
b: refs/heads/master
c: 8e08b75
h: refs/heads/master
v: v3
  • Loading branch information
Andrew Morton authored and Linus Torvalds committed Feb 8, 2006
1 parent f1d8329 commit dc9ad34
Show file tree
Hide file tree
Showing 2 changed files with 4 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: 48b8c10056d22ecc070bbfcbbfc8f84d13181178
refs/heads/master: 8e08b756869eeb08ace17ad64c2a8cb97b18e856
3 changes: 3 additions & 0 deletions trunk/kernel/module.c
Original file line number Diff line number Diff line change
Expand Up @@ -1670,6 +1670,9 @@ static struct module *load_module(void __user *umod,
goto free_mod;
}

/* Userspace could have altered the string after the strlen_user() */
args[arglen - 1] = '\0';

if (find_module(mod->name)) {
err = -EEXIST;
goto free_mod;
Expand Down

0 comments on commit dc9ad34

Please sign in to comment.