grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Link usb controller struct only when initialised


From: Vladimir 'phcoder' Serbinenko
Subject: Re: [PATCH] Link usb controller struct only when initialised
Date: Tue, 9 Jun 2009 01:57:32 +0200

Commited with small stylistic change: comments start with an uppercase
letter and end with 2 spaces

On Sun, Jun 7, 2009 at 8:37 PM, Oliver Henshaw<address@hidden> wrote:
> When controller initialisation is aborted in grub_uhci_pci_iter
> (grub_ohci_pci_iter) control
> jumps to "fail:", where any allocated memory is freed. However, the
> struct grub_uhci *u
> (struct grub_ohci *o) for that controller remains linked to the list
> of UHCI (OHCI)
> controllers. This causes problems later, when grub iterates over
> controllers to initialise
> their ports.
>
> The solution is to link only when the usb controller is successfully
> initialised, and just
> before returning from the function.
>
> This patch is tested with real hardware and with qemu and the rescue image.
>
>
> Thanks,
> Oliver
>
> _______________________________________________
> Grub-devel mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/grub-devel
>
>



-- 
Regards
Vladimir 'phcoder' Serbinenko




reply via email to

[Prev in Thread] Current Thread [Next in Thread]