]> git.karo-electronics.de Git - karo-tx-linux.git/commit
s390/crypt: fix missing unlock in ctr_paes_crypt on error path
authorMartin Schwidefsky <schwidefsky@de.ibm.com>
Tue, 28 Feb 2017 06:05:59 +0000 (07:05 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 1 Mar 2017 08:59:27 +0000 (09:59 +0100)
commite7c95effcd3a7a0c9535c809141ca499fede2c31
tree443ed774218ce8d1f3b8b1dcf5bc12d84827f593
parent2d6be4abf514fc26c83d239c7f31da1f95e4a31d
s390/crypt: fix missing unlock in ctr_paes_crypt on error path

The ctr mode of protected key aes uses the ctrblk page if the
ctrblk_lock could be acquired. If the protected key has to be
reestablished and this operation fails the unlock for the
ctrblk_lock is missing. Add it.

Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/crypto/paes_s390.c