]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/pseries: fix memory leak in queue_hotplug_event() error path
authorAndrew Donnellan <andrew.donnellan@au1.ibm.com>
Mon, 19 Sep 2016 06:41:32 +0000 (16:41 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 20 Sep 2016 06:17:54 +0000 (16:17 +1000)
commit7b5d7f106c1cdd2d5d7ab07e82e7ac8b12de8fc0
tree26550142d067142c54038f6f126ad7735174c8eb
parenta6a1ddb51896c5c53eb53d4463f8b10ccc916d8a
powerpc/pseries: fix memory leak in queue_hotplug_event() error path

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 <andrew.donnellan@au1.ibm.com>
Reviewed-by: Nathan Fontenot <nfont@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/platforms/pseries/dlpar.c