android_kernel_samsung_a7y1.../drivers/xen/xen-pciback
Ross Lagerwall a529f75475 xen/pciback: Check dev_data before using it
[ Upstream commit 1669907e3d1abfa3f7586e2d55dbbc117b5adba2 ]

If pcistub_init_device fails, the release function will be called with
dev_data set to NULL.  Check it before using it to avoid a NULL pointer
dereference.

Signed-off-by: Ross Lagerwall <ross.lagerwall@citrix.com>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-04-07 12:41:44 +02:00
..
conf_space_capability.c xen/pciback: remove set but not used variable 'old_state' 2020-04-06 20:48:45 +02:00
conf_space_header.c
conf_space_quirks.c
conf_space_quirks.h
conf_space.c
conf_space.h
Makefile
passthrough.c
pci_stub.c xen/pciback: Check dev_data before using it 2020-04-07 12:41:44 +02:00
pciback_ops.c xen/pciback: Don't disable PCI_COMMAND on PCI device reset. 2020-04-06 18:20:54 +02:00
pciback.h
vpci.c
xenbus.c