]> git.karo-electronics.de Git - karo-tx-linux.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>
Mon, 3 Oct 2011 16:19:33 +0000 (12:19 -0400)
commitdec29021b7e4290eef4305856255eb1c31d76c3c
tree872abadbe510b26327d5db802dd6d684ea70536b
parentbea4adb890480150f096fa7c03f9f8d135635504
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