Re: [PATCH v2] ocxl: Fix potential memory leak on context creation

2019-05-20 Thread Greg Kurz
On Mon, 20 May 2019 09:16:18 +0200 Frederic Barrat wrote: > If we couldn't fully init a context, we were leaking memory. > > Fixes: b9721d275cc2 ("ocxl: Allow external drivers to use OpenCAPI contexts") Oops... missed that during review :-\ > Signed-off-by: Frederic Barrat > --- > > Changelo

Re: [PATCH v2] ocxl: Fix potential memory leak on context creation

2019-05-20 Thread Andrew Donnellan
Acked-by: Andrew Donnellan On 20/5/19 5:16 pm, Frederic Barrat wrote: If we couldn't fully init a context, we were leaking memory. Fixes: b9721d275cc2 ("ocxl: Allow external drivers to use OpenCAPI contexts") Signed-off-by: Frederic Barrat --- Changelog: v2: reset context pointer in case of

[PATCH v2] ocxl: Fix potential memory leak on context creation

2019-05-20 Thread Frederic Barrat
If we couldn't fully init a context, we were leaking memory. Fixes: b9721d275cc2 ("ocxl: Allow external drivers to use OpenCAPI contexts") Signed-off-by: Frederic Barrat --- Changelog: v2: reset context pointer in case of allocation failure (Andrew) drivers/misc/ocxl/context.c | 2 ++ 1 file c