8fbaa51d43
If kzalloc() fails when allocating adapter->guest in
cxl_guest_init_adapter(), we call free_adapter() before erroring out.
free_adapter() in turn attempts to dereference adapter->guest, which in
this case is NULL.
In free_adapter(), skip the adapter->guest cleanup if adapter->guest is
NULL.
Fixes:
|
||
---|---|---|
.. | ||
api.c | ||
base.c | ||
context.c | ||
cxl.h | ||
debugfs.c | ||
fault.c | ||
file.c | ||
flash.c | ||
guest.c | ||
hcalls.c | ||
hcalls.h | ||
irq.c | ||
Kconfig | ||
main.c | ||
Makefile | ||
native.c | ||
of.c | ||
pci.c | ||
phb.c | ||
sysfs.c | ||
trace.c | ||
trace.h | ||
vphb.c |