]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
s390/crypto: Fix return code checking in cbc_paes_crypt()
authorIngo Franzki <ifranzki@linux.ibm.com>
Wed, 26 Sep 2018 14:37:00 +0000 (16:37 +0200)
committerStefan Bader <stefan.bader@canonical.com>
Mon, 1 Oct 2018 14:54:12 +0000 (16:54 +0200)
commit15c47ccdc31c6327d745eee1d8597f9886441430
treed6944e11132a961c8e04b0beb47cce165cdf44a8
parent5355e6d318211ecfca3514fd38e5bf6160e7cab9
s390/crypto: Fix return code checking in cbc_paes_crypt()

BugLink: https://bugs.launchpad.net/bugs/1794294
The return code of cpacf_kmc() is less than the number of
bytes to process in case of an error, not greater.
The crypt routines for the other cipher modes already have
this correctly.

Cc: stable@vger.kernel.org # v4.11+
Fixes: 279378430768 ("s390/crypt: Add protected key AES module")
Signed-off-by: Ingo Franzki <ifranzki@linux.ibm.com>
Acked-by: Harald Freudenberger <freude@linux.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
(cherry picked from commit b81126e01a8c6048249955feea46c8217ebefa91)
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
Acked-by: Stefan Bader <stefan.bader@canonical.com>
Acked-by: Colin King <colin.king@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
arch/s390/crypto/paes_s390.c