s390/zcrypt: fix memory leak with ap configuration data
authorMartin Schwidefsky <schwidefsky@de.ibm.com>
Fri, 26 Jun 2015 14:55:35 +0000 (16:55 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 14 Oct 2015 12:32:20 +0000 (14:32 +0200)
commit889875a14f0a3205e78613b3e78ecc4efc187d74
treedc0d255c0d036647fd86bb73ee3e71797437495c
parent6acbe21f473f5cff8a11546f090967459b63ab3e
s390/zcrypt: fix memory leak with ap configuration data

The ap_query_configuration function allocates the ap_config_info
structure, but there is no code to free the structure.
Allocate the structure in the module_init function and free it
again in module_exit.

While we are at it simplify a few functions in regard to the
ap configuration data.

Reviewed-by: Ingo Tuchscherer <ingo.tuchscherer@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/crypto/ap_bus.c
drivers/s390/crypto/ap_bus.h
This page took 0.029187 seconds and 5 git commands to generate.