]> pilppa.com Git - linux-2.6-omap-h63xx.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)
commita844158a642ffe8b3b29964a88ee802c2834ed0a
tree05ab9fe0a7b31af7f2885fd07ef1bfda50b977ba
parentabad2ec98f2ef357d62026cbc3989dabf33f2435
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