Re: mmotm 2008-11-29-01-53 uploaded

From: Rusty Russell
Date: Sun Nov 30 2008 - 23:37:47 EST


On Monday 01 December 2008 12:40:40 KAMEZAWA Hiroyuki wrote:
> On Sat, 29 Nov 2008 01:59:56 -0800
>
> akpm@xxxxxxxxxxxxxxxxxxxx wrote:
> > The mm-of-the-moment snapshot 2008-11-29-01-53 has been uploaded to
> >
> > http://userweb.kernel.org/~akpm/mmotm/
> >
> > It contains the following patches against 2.6.28-rc6:
>
> Hi, in recent changes of linux-next.patch

Yep, it was mine. Latest linux-next should have the fix (sfr berated me for
this bug earlier), which is below:

core_param: call these 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@xxxxxxxxxxxxxxx>
---
kernel/params.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/kernel/params.c b/kernel/params.c
--- a/kernel/params.c
+++ b/kernel/params.c
@@ -634,7 +634,9 @@ static void __init param_sysfs_builtin(v
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);

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/