s390/zcrypt: fix possible memory leak in ap_module_init()
authorWei Yongjun <weiyj.lk@gmail.com>
Sun, 31 Jul 2016 09:47:06 +0000 (11:47 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Sun, 31 Jul 2016 10:10:41 +0000 (06:10 -0400)
commit33c388b81ce4b2f249730014b9b9f103a7578ca2
treec524c05300b46b8e7c1d14a277de74886c667399
parentef4423ce70b8a78768a6e854e4d84c082800317d
s390/zcrypt: fix possible memory leak in ap_module_init()

ap_configuration is malloced in ap_module_init() and should be freed
before leaving from the error handling cases, otherwise it may cause
memory leak.

Signed-off-by: Wei Yongjun <weiyj.lk@gmail.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/crypto/ap_bus.c