Fix bug introduced in revision 1.9; in nexus_probe_nomatch() get device name
and type for printing info about the device that didn't probe from child, not parent. This fixes a panic on systems where not yet supported devices hang off of the nexus, e.g. on E450. Reported by: joerg
This commit is contained in:
parent
c99291a3b0
commit
441f1204cc
@ -228,13 +228,12 @@ nexus_attach(device_t dev)
|
||||
static void
|
||||
nexus_probe_nomatch(device_t dev, device_t child)
|
||||
{
|
||||
char *name = nexus_get_name(dev);
|
||||
char *type;
|
||||
|
||||
if ((type = nexus_get_device_type(dev)) == NULL)
|
||||
if ((type = nexus_get_device_type(child)) == NULL)
|
||||
type = "(unknown)";
|
||||
device_printf(dev, "<%s>, type %s (no driver attached)\n",
|
||||
name, type);
|
||||
nexus_get_name(child), type);
|
||||
}
|
||||
|
||||
static int
|
||||
|
Loading…
Reference in New Issue
Block a user