|
From: | Gerd Hoffmann |
Subject: | Re: [Qemu-devel] [PATCH] pci: cleanly backout of pci_qdev_init() |
Date: | Tue, 11 May 2010 11:36:25 +0200 |
User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100430 Fedora/3.0.4-2.fc12 Thunderbird/3.0.4 |
On 05/11/10 11:25, Markus Armbruster wrote:
Alex Williamson<address@hidden> writes:If the init function of a device fails, as might happen with device assignment, we never undo the work done by do_pci_register_device(). This not only causes a bit of a memory leak, but also leaves a bogus pointer in the bus devices array that can cause a segfault or garbage data from 'info pci'. Signed-off-by: Alex Williamson<address@hidden>Looks good to me. Gerd?
Yes, looks fine. cheers, Gerd
[Prev in Thread] | Current Thread | [Next in Thread] |