]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: check the return value of device_create_bin_file() in pci_create_bus()
authorSimon Horman <horms@verge.net.au>
Thu, 7 Aug 2008 04:56:34 +0000 (14:56 +1000)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Thu, 7 Aug 2008 16:49:07 +0000 (09:49 -0700)
commit48244998f9ec1f9ccb9e6ad55ccf683d9bc4f4a6
tree05ab9fe0a7b31af7f2885fd07ef1bfda50b977ba
parentab3570027bae40cd3a8090a335e75cd58a44a904
PCI: check the return value of device_create_bin_file() in pci_create_bus()

Check the return value of device_create_bin_file in pci_create_bus and
unwind if necessary. Don't propagate error to caller, as failure to create
these files shouldn't prevent PCI from being initialised. Instead, just
log a warning.

Cc: Sven Wegener <sven.wegener@stealer.net>
Cc: Michael Ellerman <michael@ellerman.id.au>
Cc: Matthew Wilcox <matthew@wil.cx>
Signed-off-by: Simon Horman <horms@verge.net.au>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
drivers/pci/probe.c