Re: powerpc/pseries: fix memory leak in queue_hotplug_event() error path

2016-09-20 Thread Michael Ellerman
On Mon, 2016-19-09 at 06:41:32 UTC, Andrew Donnellan wrote: > If we fail to allocate work, we don't end up using hp_errlog_copy. Free it > in the error path. > > Signed-off-by: Andrew Donnellan > Reviewed-by: Nathan Fontenot Applied to powerpc next, thanks. https://git.kernel.org/powerpc/c/90c

Re: [PATCH] powerpc/pseries: fix memory leak in queue_hotplug_event() error path

2016-09-19 Thread Nathan Fontenot
On 09/19/2016 01:41 AM, Andrew Donnellan wrote: > If we fail to allocate work, we don't end up using hp_errlog_copy. Free it > in the error path. > > Signed-off-by: Andrew Donnellan Reviewed-by: Nathan Fontenot > > --- > > Found by Coverity Scan. Compile tested only. > --- > arch/powerpc/pl

[PATCH] powerpc/pseries: fix memory leak in queue_hotplug_event() error path

2016-09-18 Thread Andrew Donnellan
If we fail to allocate work, we don't end up using hp_errlog_copy. Free it in the error path. Signed-off-by: Andrew Donnellan --- Found by Coverity Scan. Compile tested only. --- arch/powerpc/platforms/pseries/dlpar.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/powerpc/platforms/p