linux-stable/drivers/misc/ocxl
Frederic Barrat 2da53ec72f ocxl: Fix potential memory leak on context creation
[ Upstream commit 913e73c77d ]

If we couldn't fully init a context, we were leaking memory.

Fixes: b9721d275c ("ocxl: Allow external drivers to use OpenCAPI contexts")
Signed-off-by: Frederic Barrat <fbarrat@linux.ibm.com>
Acked-by: Andrew Donnellan <ajd@linux.ibm.com>
Reviewed-by: Greg Kurz <groug@kaod.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20191209105513.8566-1-fbarrat@linux.ibm.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-01-12 12:21:31 +01:00
..
afu_irq.c
config.c ocxl: Update for AFU descriptor template version 1.1 2019-07-10 13:20:44 +10:00
context.c ocxl: Fix potential memory leak on context creation 2020-01-12 12:21:31 +01:00
core.c
file.c ocxl: Fix concurrent AFU open and device removal 2019-12-31 16:46:29 +01:00
Kconfig Merge 5.2-rc4 into char-misc-next 2019-06-09 09:11:21 +02:00
link.c ocxl: Allow contexts to be attached with a NULL mm 2019-07-03 21:29:47 +02:00
main.c powerpc/64s/radix: introduce options to disable use of the tlbie instruction 2019-09-05 14:22:41 +10:00
Makefile
mmio.c
ocxl_internal.h
pasid.c
pci.c ocxl: Make ocxl_remove() static 2019-05-28 12:08:11 +10:00
sysfs.c
trace.c
trace.h