]> git.hungrycats.org Git - linux/commit
[PATCH] PCI: add missing checks in drivers/pci/probe.c.
authorLuiz Capitulino <lcapitulino@conectiva.com.br>
Wed, 6 Oct 2004 06:04:58 +0000 (23:04 -0700)
committerGreg Kroah-Hartman <greg@kroah.com>
Wed, 6 Oct 2004 06:04:58 +0000 (23:04 -0700)
commita573e054cccf1df23b72583a8ed9900768697b64
treee3e1244930c4bb5eda151b5e907dbb205b264178
parentc52e920c218c62267c0164e22084a4e61e1d56ed
[PATCH] PCI: add missing checks in drivers/pci/probe.c.

 I noticed drivers/pci/probe.c::pci_scan_bus_parented() has some functions which
the return value is not checked.

 The patch bellow adds the check for device_register(), class_device_register(),
class_device_create_file() and sysfs_create_link().

(hope the error label names are not too ugly).

Signed-off-by: Luiz Capitulino <lcapitulino@conectiva.com.br>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
drivers/pci/probe.c