From: Grant Grundler <grundler@parisc-linux.org>
To: Guy Martin <gmsoft@tuxicoman.be>
Cc: parisc-linux@lists.parisc-linux.org
Subject: Re: [parisc-linux] LBA PCI : avoid crash when pluging a pcmcia bridge
Date: Wed, 15 Nov 2006 01:00:22 -0700 [thread overview]
Message-ID: <20061115080022.GB30664@colo.lackof.org> (raw)
In-Reply-To: <20061108150706.bb658b27.gmsoft@tuxicoman.be>
On Wed, Nov 08, 2006 at 03:07:06PM +0100, Guy Martin wrote:
> Hi All,
>
> Referencing this thread about a crash when there is a pcmcia bridge plugged in a C3600 :
> http://lists.parisc-linux.org/pipermail/parisc-linux/2006-October/030312.html
...
> it would be better to fix pci_scan_bus_parented() which returns NULL
Guy,
pci_scan_bus_parented() calls pci_create_bus() in order to allocate
the bus. pci_create_bus() is obviously failing.
Can you add printks to each of the follow labels in pci_create_bus()
and printks for the first two "return NULL" statements?
It's ok if your tree also has the patch you proposed so it doesn't crash.
Code from drivers/pci/probe.c:pci_create_bus()
...
sys_create_link_err:
class_device_remove_file(&b->class_dev, &class_device_attr_cpuaffinity);
class_dev_create_file_err:
class_device_unregister(&b->class_dev);
class_dev_reg_err:
device_unregister(dev);
dev_reg_err:
down_write(&pci_bus_sem);
list_del(&b->node);
up_write(&pci_bus_sem);
err_out:
kfree(dev);
kfree(b);
return NULL;
}
Once I know which error is occurring, then I can take
the next step towards investigating the problem.
thanks,
grant
_______________________________________________
parisc-linux mailing list
parisc-linux@lists.parisc-linux.org
http://lists.parisc-linux.org/mailman/listinfo/parisc-linux
next prev parent reply other threads:[~2006-11-15 8:00 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-08 14:07 [parisc-linux] LBA PCI : avoid crash when pluging a pcmcia bridge Guy Martin
2006-11-09 6:40 ` Grant Grundler
2006-11-15 8:00 ` Grant Grundler [this message]
2006-11-15 11:25 ` Guy Martin
2006-11-15 12:23 ` Matthew Wilcox
2006-11-15 14:54 ` James Bottomley
2006-11-15 18:08 ` Guy Martin
2006-11-17 20:30 ` Matthew Wilcox
2006-11-18 11:21 ` Guy Martin
2006-11-18 13:56 ` Matthew Wilcox
2006-11-18 14:22 ` James Bottomley
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20061115080022.GB30664@colo.lackof.org \
--to=grundler@parisc-linux.org \
--cc=gmsoft@tuxicoman.be \
--cc=parisc-linux@lists.parisc-linux.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox