[U-Boot] [PATCH 03/10] dm: pci: Tidy up auto-config error handling

Simon Glass sjg at chromium.org
Sun Oct 18 14:28:08 CEST 2015


On 14 September 2015 at 06:15, Bin Meng <bmeng.cn at gmail.com> wrote:
> On Wed, Sep 9, 2015 at 7:52 AM, Simon Glass <sjg at chromium.org> wrote:
>> When the auto-configuration process fails for a device (generally due to
>> lack of memory) we should return the error correctly so that we don't
>> continue to try memory allocations which will fail.
>>
>> Adjust the code to check for errors and abort if something goes wrong.
>>
>> Signed-off-by: Simon Glass <sjg at chromium.org>
>> ---
>>
>>  drivers/pci/pci-uclass.c | 15 ++++++++++++---
>>  1 file changed, 12 insertions(+), 3 deletions(-)
[snip]
>
> Reviewed-by: Bin Meng <bmeng.cn at gmail.com>

Applied to u-boot-x86.


More information about the U-Boot mailing list