]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
xen/pciback: Do not dereference psdev during printk when it is NULL.
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Thu, 29 Sep 2011 17:43:28 +0000 (13:43 -0400)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Wed, 19 Oct 2011 20:58:17 +0000 (16:58 -0400)
commit72bf809a19d9fc97bfe39bb928149b5e0f202cb6
tree08368e95973c981871886d37123d34c9219296ed
parent5fbdc10395cd500d6ff844825a918c4e6f38de37
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>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
drivers/xen/xen-pciback/pci_stub.c