Re: [PATCH 2.4] - drivers/pci/pci.c NULL pointer fix.

From: Marcelo Tosatti
Date: Tue Aug 31 2004 - 07:49:05 EST



Applied,

Thanks.

On Mon, Aug 30, 2004 at 12:47:33PM -0300, Luiz Fernando N. Capitulino wrote:
> Marcelo,
>
> This is another bug fix: the function pci/pci.c::pci_add_new_bus() does not
> check the return of pci_alloc_bus(). If this function returns NULL, `child'
> can be utilised.
>
> In the patch bellow I added the check, if the call that pci_scan_bridge()
> is doing to pci_alloc_bus() return NULL, pci_scan_bridge() returns `max'
> (Greg accepted this fix for 2.6, a while ago).
>
> (against 2.4.28-pre2)
>
>
> Signed-off-by: Luiz Capitulino <lcapitulino@xxxxxxxxxxxxxxxx>
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/