Skip to content
Commit 22f944f8 authored by Frederic Barrat's avatar Frederic Barrat Committed by Paul Gortmaker
Browse files

ocxl: Fix potential memory leak on context creation



commit 913e73c7 upstream.

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 avatarPaul Gortmaker <paul.gortmaker@windriver.com>
parent b5345526
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