diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2008-11-28 10:11:26 +1100 |
---|---|---|
committer | Stephen Rothwell <sfr@canb.auug.org.au> | 2008-11-28 10:11:26 +1100 |
commit | f6fa03ea53f9083aa80730ce043ed3fb146f8262 (patch) | |
tree | 3b6f7f60b4163e7dda8c19b60261ad176f811981 /kernel | |
parent | 9d3c1c0980888b1543c31a922c73dcd5d8e7ad36 (diff) |
param:core_param-really-really-early-fix
USB sets prefix to "", so there's no dot. We should really be using
core_param for this.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/params.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/kernel/params.c b/kernel/params.c index afac6670964b..baf82aa43a01 100644 --- a/kernel/params.c +++ b/kernel/params.c @@ -634,7 +634,9 @@ static void __init param_sysfs_builtin(void) continue; dot = strchr(kp->name, '.'); - BUG_ON(!dot); + /* FIXME: USB code sets prefix to "". Should use core_param */ + if (!dot) + continue; name_len = dot - kp->name + 1; strlcpy(modname, kp->name, name_len); kernel_add_sysfs_param(modname, kp, name_len); |