All of lore.kernel.org
 help / color / mirror / Atom feed
* [Kernel-janitors] Re: [PATCH] - fix pci/probe.c possible NULL
@ 2004-05-28 20:35 Greg KH
  0 siblings, 0 replies; only message in thread
From: Greg KH @ 2004-05-28 20:35 UTC (permalink / raw)
  To: kernel-janitors

[-- Attachment #1: Type: text/plain, Size: 536 bytes --]

On Thu, May 27, 2004 at 04:12:32PM -0300, Luiz Fernando N. Capitulino wrote:
> 
>  Hi,
> 
>  In drivers/pci/probe.c::pci_scan_bridge() the call for pci_alloc_child_bus()
> can return NULL, but it is not handled by the function (detected by
> Coverity's checker).
> 
>  The patch bellow fix that returning `max' if we got the NULL, but
> I do not know if it is right. I guess it is, because in that case
> the function will act in the same way as with `pass != 0'.

Looks good enough.  Better than an oops :)

Applied, thanks.

greg k-h

[-- Attachment #2: Type: text/plain, Size: 167 bytes --]

_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
http://lists.osdl.org/mailman/listinfo/kernel-janitors

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-05-28 20:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-05-28 20:35 [Kernel-janitors] Re: [PATCH] - fix pci/probe.c possible NULL Greg KH

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.