Re: 2.5.69-mm6: pccard oops while booting: round 2

Andrew Morton (akpm@digeo.com)
Sat, 17 May 2003 04:39:46 -0700


Felipe Alfaro Solana <felipe_alfaro@linuxmail.org> wrote:
>
> Unable to handle kernel paging request at virtual address fceec0d7
> printing eip:
> c016954f
> *pde = 00000000
> Oops: 0000 [#1]
> CPU: 0
> EIP: 0060:[<c016954f>] Not tainted VLI
> EFLAGS: 00010246
> EIP is at sys_create_link+0xcf/0x130

bah. That's totally different :(

But there seems to be a bug in there.

--- 25/fs/sysfs/symlink.c~sysfs_create_link-fix 2003-05-17 04:34:50.000000000 -0700
+++ 25-akpm/fs/sysfs/symlink.c 2003-05-17 04:34:56.000000000 -0700
@@ -80,7 +80,7 @@ int sysfs_create_link(struct kobject * k
char * s;

depth = object_depth(kobj);
- size = object_path_length(target) + depth * 3 - 1;
+ size = object_path_length(target) + depth * 3 + 1;
if (size > PATH_MAX)
return -ENAMETOOLONG;
pr_debug("%s: depth = %d, size = %d\n",__FUNCTION__,depth,size);

That probably won't fix it though.

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