From: Markus Armbruster <armbru@redhat.com>
To: Isaku Yamahata <yamahata@valinux.co.jp>
Cc: qemu-devel@nongnu.org, mst@redhat.com
Subject: Re: [Qemu-devel] [PATCH] pci: fix pci_unregister_secondary_bus().
Date: Fri, 09 Jul 2010 08:46:33 +0200 [thread overview]
Message-ID: <m3y6dlnody.fsf@blackfin.pond.sub.org> (raw)
In-Reply-To: <c7e8ea68cce5e6b10e3378463e6befd335fd723b.1278640326.git.yamahata@valinux.co.jp> (Isaku Yamahata's message of "Fri, 9 Jul 2010 10:52:18 +0900")
Isaku Yamahata <yamahata@valinux.co.jp> writes:
> Fix leak in pci_unregister_secondary_bus().
> call qbus_free().
>
> Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
> ---
> hw/pci.c | 1 +
> 1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/hw/pci.c b/hw/pci.c
> index a7ff566..25634ed 100644
> --- a/hw/pci.c
> +++ b/hw/pci.c
> @@ -298,6 +298,7 @@ static void pci_unregister_secondary_bus(PCIBus *bus)
> {
> assert(QLIST_EMPTY(&bus->child));
> QLIST_REMOVE(bus, sibling);
> + qbus_free(&bus->qbus);
> }
>
> int pci_bus_num(PCIBus *s)
Buses are normally freed automatically along with the device providing
them, in qdev_free(). Why is that not sufficient for pci-bridge?
next prev parent reply other threads:[~2010-07-09 6:46 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-09 1:52 [Qemu-devel] [PATCH] pci: fix pci_unregister_secondary_bus() Isaku Yamahata
2010-07-09 6:46 ` Markus Armbruster [this message]
2010-07-09 7:02 ` Isaku Yamahata
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=m3y6dlnody.fsf@blackfin.pond.sub.org \
--to=armbru@redhat.com \
--cc=mst@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=yamahata@valinux.co.jp \
/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;
as well as URLs for NNTP newsgroup(s).