Alex Williamson <alex.william...@redhat.com> 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 <alex.william...@redhat.com>

Looks good to me.  Gerd?

Reply via email to