Skip to contentSkip to conversation

- fix pci/probe.c possible NULL

PATCH Greg KH 1 participant 1 message May 28, 2004 Kernel janitors

lore
Share & tools
lore

Greg KH

author Applied
#0 lore raw
Quoted 10 lines · Luiz Fernando N. Capitulino

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

_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors