s390/crypto: unlock on error in prng_tdes_read()
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 18 Nov 2016 11:11:00 +0000 (14:11 +0300)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Mon, 12 Dec 2016 08:01:10 +0000 (09:01 +0100)
commit9e6e7c74315095fd40f41003850690c711e44420
treef1c2d08206255394d53b81e7a91720f7db03e501
parente32eae10e589ec54679c19ca6c9d1b276e9b97cd
s390/crypto: unlock on error in prng_tdes_read()

We added some new locking but forgot to unlock on error.

Fixes: 57127645d79d ("s390/zcrypt: Introduce new SHA-512 based Pseudo Random Generator.")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/crypto/prng.c