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

2019-12-17 Thread Michael Ellerman
On Mon, 2019-12-09 at 10:55:13 UTC, 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 Applied to powerpc fixes, thanks. https://git.kernel.org/p

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

2019-12-09 Thread Greg Kurz
On Mon, 9 Dec 2019 11:55:13 +0100 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 > --- Reviewed-by: Greg Kurz > Changlog: > v3: > c

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

2019-12-09 Thread Andrew Donnellan
On 9/12/19 9:55 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 Acked-by: Andrew Donnellan -- Andrew Donnellan OzLabs, ADL Canber

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

2019-12-09 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 --- Changlog: v3: code cleanup (Greg) v2: reset context pointer in case of allocation failure (Andrew) drive