lkml.org 
[lkml]   [2008]   [Feb]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: [PCI] duplicate sysfs symbols getting registered in current git
On Wed, 27 Feb 2008 12:24:54 +0100 (CET),
Guennadi Liakhovetski <g.liakhovetski@gmx.de> wrote:

> Ok, result #1: kernel panic
> http://home.arcor.de/g.liakhovetski/ap400/imga0045.jpg. If necessary, can
> try a serial console, but that would be more difficult.

Looking at device_add(): Does the following patch make the oops go away?

---
drivers/base/core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- linux-2.6.orig/drivers/base/core.c
+++ linux-2.6/drivers/base/core.c
@@ -780,7 +780,7 @@ int device_add(struct device *dev)
dev = get_device(dev);
if (!dev || !strlen(dev->bus_id)) {
error = -EINVAL;
- goto Error;
+ goto Done;
}

pr_debug("device: '%s': %s\n", dev->bus_id, __FUNCTION__);

\
 
 \ /
  Last update: 2008-02-27 12:51    [from the cache]
©2003-2014 Jasper Spaans. Advertise on this site