kernel_optimize_test/drivers/xen/xen-pciback
Doug Goldstein 584a561a6f xen-pciback: fix up cleanup path when alloc fails
When allocating a pciback device fails, clear the private
field. This could lead to an use-after free, however
the 'really_probe' takes care of setting
dev_set_drvdata(dev, NULL) in its failure path (which we would
exercise if the ->probe function failed), so we we
are OK. However lets be defensive as the code can change.

Going forward we should clean up the pci_set_drvdata(dev, NULL)
in the various code-base. That will be for another day.

Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Reported-by: Jonathan Creekmore <jonathan.creekmore@gmail.com>
Signed-off-by: Doug Goldstein <cardoe@cardoe.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
2015-12-18 11:38:48 -05:00
..
conf_space_capability.c
conf_space_header.c
conf_space_quirks.c
conf_space_quirks.h
conf_space.c
conf_space.h
Makefile
passthrough.c
pci_stub.c
pciback_ops.c xen/pciback: Don't allow MSI-X ops if PCI_COMMAND_MEMORY is not set. 2015-12-18 10:48:39 -05:00
pciback.h
vpci.c
xenbus.c xen-pciback: fix up cleanup path when alloc fails 2015-12-18 11:38:48 -05:00