Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 73722
b: refs/heads/master
c: 22800a2
h: refs/heads/master
v: v3
  • Loading branch information
Jan Kiszka authored and Linus Torvalds committed Nov 15, 2007
1 parent 39e18cf commit 92484a1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 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: 9fcc2d15b14894aa53e5e8b7fd5d6e3ca558e5df
refs/heads/master: 22800a2830ec07e7cc5c837999890ac47cc7f5de
15 changes: 6 additions & 9 deletions trunk/kernel/params.c
Original file line number Diff line number Diff line change
Expand Up @@ -592,19 +592,16 @@ static void __init param_sysfs_builtin(void)

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

kp = &__start___param[i];
kplen = strlen(kp->name);
max_name_len =
min_t(size_t, MAX_KBUILD_MODNAME, strlen(kp->name));

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

0 comments on commit 92484a1

Please sign in to comment.