]> git.baikalelectronics.ru Git - kernel.git/commit
xen/pciback: Check if the device is found instead of blindly assuming so.
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Thu, 29 Sep 2011 17:12:43 +0000 (13:12 -0400)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Wed, 19 Oct 2011 21:01:10 +0000 (17:01 -0400)
commit73783215d7b1d433848af40f5d62b30f65a51178
tree5cd174f16d7035b366d5293d1d35a5cc27458721
parent345c7ff38d0e0c3f6c46c022e1cf71292a06e4c2
xen/pciback: Check if the device is found instead of blindly assuming so.

Just in case it is not found, don't try to dereference it.

[v1: Added WARN_ON, suggested by Jan Beulich <JBeulich@suse.com>]
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
drivers/xen/xen-pciback/pci_stub.c