]> www.infradead.org Git - users/jedix/linux-maple.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 17:45:22 +0000 (13:45 -0400)
commiteb1e81709ffe2e84b2085c877db2d2c6a6bfffc2
treec72386138a660773428d1cfcd26f4aea1696bd84
parent8f0feb8c5715be162ea1367c5072f8e824781b08
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