--- zzzz-none-000/linux-3.10.107/drivers/s390/crypto/zcrypt_cca_key.h 2017-06-27 09:49:32.000000000 +0000 +++ scorpion-7490-727/linux-3.10.107/drivers/s390/crypto/zcrypt_cca_key.h 2021-02-04 17:41:59.000000000 +0000 @@ -291,7 +291,7 @@ memset(key, 0, sizeof(*key)); - short_len = crt->inputdatalength / 2; + short_len = (crt->inputdatalength + 1) / 2; long_len = short_len + 8; pad_len = -(3*long_len + 2*short_len) & 7; key_len = 3*long_len + 2*short_len + pad_len + crt->inputdatalength;