Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 71127
b: refs/heads/master
c: faf8c71
h: refs/heads/master
i:
  71125: 7f6e213
  71123: dfab6c3
  71119: 24838ef
v: v3
  • Loading branch information
Dave Young authored and Linus Torvalds committed Oct 18, 2007
1 parent ff94878 commit 51fef7b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 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: 8f286c33f1e838d631f4a3260b33efce4bc5973c
refs/heads/master: faf8c714f4508207a9c81cc94dafc76ed6680b44
8 changes: 7 additions & 1 deletion trunk/kernel/params.c
Original file line number Diff line number Diff line change
Expand Up @@ -592,11 +592,17 @@ static void __init param_sysfs_builtin(void)

for (i=0; i < __stop___param - __start___param; i++) {
char *dot;
size_t kplen;

kp = &__start___param[i];
kplen = strlen(kp->name);

/* We do not handle args without periods. */
dot = memchr(kp->name, '.', MAX_KBUILD_MODNAME);
if (kplen > MAX_KBUILD_MODNAME) {
DEBUGP("kernel parameter name is too long: %s\n", kp->name);
continue;
}
dot = memchr(kp->name, '.', kplen);
if (!dot) {
DEBUGP("couldn't find period in %s\n", kp->name);
continue;
Expand Down

0 comments on commit 51fef7b

Please sign in to comment.