lkml.org 
[lkml]   [2003]   [Dec]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: Badness in kobject_get at lib/kobject.c:439
On Wed, Dec 10, 2003 at 12:02:56AM +0100, Svetoslav Slavtchev wrote:
> Call Trace:
> [<c019a1f4>] kobject_get+0x30/0x3d
> [<c01dd8d3>] class_get+0x1a/0x2c
> [<c01ddb67>] class_device_add+0x41/0x110
> [<c01cc4ec>] misc_add_class_device+0x63/0xc6
> [<c01cc6d8>] misc_register+0xeb/0x120
> [<c0361fd8>] apm_init+0x2ec/0x324

Hm, here's the problem. Can you disable APM and see if the oops goes
away? I bet apm_init() is being called before misc_init() is.

If you don't want to disable APM (and you should not have to) can you
apply the patch below to misc.c and let me know if it fixes your problem
or not?

thanks,

greg k-h

--- a/drivers/char/misc.c Mon Oct 6 10:47:30 2003
+++ b/drivers/char/misc.c Tue Dec 9 15:28:10 2003
@@ -407,4 +407,4 @@
}
return 0;
}
-module_init(misc_init);
+subsys_initcall(misc_init);
-
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/
\
 
 \ /
  Last update: 2005-03-22 13:59    [W:0.027 / U:0.600 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site