]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
Revert "crypto: talitos - convert to use be16_add_cpu()"
authorHoria Geant? <horia.geanta@freescale.com>
Mon, 11 May 2015 17:04:49 +0000 (20:04 +0300)
committerJiri Slaby <jslaby@suse.cz>
Thu, 30 Jul 2015 12:10:40 +0000 (14:10 +0200)
commit7f9a9673f1db9bbc7045aa637bb19f8918d04c8a
treee8a9992f8c63ece5936365848515e0a3a00e1ae1
parent284d4f3c04f40ece0338dedf0a94dcc9ff5c77e2
Revert "crypto: talitos - convert to use be16_add_cpu()"

commit 69d9cd8c592f1abce820dbce7181bbbf6812cfbd upstream.

This reverts commit 7291a932c6e27d9768e374e9d648086636daf61c.

The conversion to be16_add_cpu() is incorrect in case cryptlen is
negative due to premature (i.e. before addition / subtraction)
implicit conversion of cryptlen (int -> u16) leading to sign loss.

Cc: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Horia Geanta <horia.geanta@freescale.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
drivers/crypto/talitos.c