]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xen/pciback: Do not dereference psdev during printk when it is NULL.
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Wed, 19 Oct 2011 17:39:47 +0000 (13:39 -0400)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Wed, 19 Oct 2011 17:45:21 +0000 (13:45 -0400)
commit8f0feb8c5715be162ea1367c5072f8e824781b08
tree00a358c89c06f0c48fe26669bb6fe17120fd59f7
parent982a7c0844d08f79bf985fdf2109dfb38ef84770
xen/pciback: Do not dereference psdev during printk when it is NULL.

.. instead use BUG_ON() as all the callers of the kill_domain_by_device
check for psdev.

Suggested-by: Jan Beulich <JBeulich@suse.com>
[v1: Rebased on top " xen/pciback: miscellaneous adjustments" causes some conflicts]
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
drivers/xen/xen-pciback/pci_stub.c