From: Tadeusz Struk Date: Fri, 15 Jul 2016 03:39:18 +0000 (-0700) Subject: crypto: rsa-pkcs1pad - fix rsa-pkcs1pad request struct X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a6d7bfd0ff21f258913dd5e626d2bd70ab3942df;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git crypto: rsa-pkcs1pad - fix rsa-pkcs1pad request struct To allow for child request context the struct akcipher_request child_req needs to be at the end of the structure. Signed-off-by: Tadeusz Struk Signed-off-by: Herbert Xu --- diff --git a/crypto/rsa-pkcs1pad.c b/crypto/rsa-pkcs1pad.c index 880d3db57a25..877019a6d3ea 100644 --- a/crypto/rsa-pkcs1pad.c +++ b/crypto/rsa-pkcs1pad.c @@ -101,10 +101,9 @@ struct pkcs1pad_inst_ctx { }; struct pkcs1pad_request { - struct akcipher_request child_req; - struct scatterlist in_sg[2], out_sg[1]; uint8_t *in_buf, *out_buf; + struct akcipher_request child_req; }; static int pkcs1pad_set_pub_key(struct crypto_akcipher *tfm, const void *key,