linux_old1/arch/s390/crypto
Colin Ian King 6512391a30 s390/crypto: avoid returning garbage value
Static analysis with cppcheck detected that ret is not initialized
and hence garbage is potentially being returned in the case where
prng_data->ppnows.reseed_counter <= prng_reseed_limit.

Thanks to Martin Schwidefsky for spotting a mistake in my original
fix.

Fixes: 0177db01ad ("s390/crypto: simplify return code handling")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
2016-09-06 11:00:00 +02:00
..
Makefile s390/crc32-vx: add crypto API module for optimized CRC-32 algorithms 2016-06-15 16:36:34 +02:00
aes_s390.c s390/crypto: simplify CPACF encryption / decryption functions 2016-08-29 11:05:11 +02:00
crc32-vx.c s390/fpu: improve kernel_fpu_[begin|end] 2016-08-29 11:05:01 +02:00
crc32be-vx.S s390/crc32-vx: use vector instructions to optimize CRC-32 computation 2016-06-14 16:54:16 +02:00
crc32le-vx.S s390/crc32-vx: use vector instructions to optimize CRC-32 computation 2016-06-14 16:54:16 +02:00
des_s390.c s390/crypto: simplify CPACF encryption / decryption functions 2016-08-29 11:05:11 +02:00
ghash_s390.c s390/crypto: cpacf function detection 2016-08-29 11:05:09 +02:00
prng.c s390/crypto: avoid returning garbage value 2016-09-06 11:00:00 +02:00
sha.h crypto: s390/sha - replace raw value by their coresponding define 2015-10-15 21:05:11 +08:00
sha1_s390.c s390/crypto: cpacf function detection 2016-08-29 11:05:09 +02:00
sha256_s390.c s390/crypto: cpacf function detection 2016-08-29 11:05:09 +02:00
sha512_s390.c s390/crypto: cpacf function detection 2016-08-29 11:05:09 +02:00
sha_common.c s390/crypto: simplify return code handling 2016-08-29 11:05:07 +02:00