Skip to content
Commit 2da53ec7 authored by Frederic Barrat's avatar Frederic Barrat Committed by Greg Kroah-Hartman
Browse files

ocxl: Fix potential memory leak on context creation



[ Upstream commit 913e73c7 ]

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

Fixes: b9721d27 ("ocxl: Allow external drivers to use OpenCAPI contexts")
Signed-off-by: default avatarFrederic Barrat <fbarrat@linux.ibm.com>
Acked-by: default avatarAndrew Donnellan <ajd@linux.ibm.com>
Reviewed-by: default avatarGreg Kurz <groug@kaod.org>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20191209105513.8566-1-fbarrat@linux.ibm.com


Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 989f4be3
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment