bf9efd4118
[ Upstream commit 85c5cbeba8f4fb28e6b9bfb3e467718385f78f76 ]
Currently the error return path from kobject_init_and_add() is not
followed by a call to kobject_put() - which means we are leaking
the kobject.
Fix it by adding a call to kobject_put() in the error path of
kobject_init_and_add().
Fixes:
|
||
---|---|---|
.. | ||
api.c | ||
base.c | ||
context.c | ||
cxl.h | ||
cxllib.c | ||
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 | ||
sysfs.c | ||
trace.c | ||
trace.h | ||
vphb.c |