2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-28 15:13:55 +08:00
linux-next/drivers/crypto/chelsio
Colin Ian King df807a1995 chcr: ensure cntrl is initialized to fix bit-wise or'ing of garabage data
In the case where skb->ip_summed != CHECKSUM_PARTIAL then cntrl contains
garbage value and this is possibly being bit-wise or'd and stored into
cpl->ctrl1.  Fix this by initializing cntrl to zero.

Cleans up clang warning:
drivers/crypto/chelsio/chcr_ipsec.c:374:9: warning: The left expression
of the compound assignment is an uninitialized value. The computed value
will also be garbage

Fixes: 6dad4e8ab3 ("chcr: Add support for Inline IPSec")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2017-12-11 22:36:59 +11:00
..
chcr_algo.c crypto: chelsio - make arrays sgl_ent_len and dsgl_ent_len static 2017-12-11 22:36:58 +11:00
chcr_algo.h chcr: Add support for Inline IPSec 2017-11-29 17:33:29 +11:00
chcr_core.c chcr: Add support for Inline IPSec 2017-11-29 17:33:29 +11:00
chcr_core.h chcr: Add support for Inline IPSec 2017-11-29 17:33:29 +11:00
chcr_crypto.h chcr: Add support for Inline IPSec 2017-11-29 17:33:29 +11:00
chcr_ipsec.c chcr: ensure cntrl is initialized to fix bit-wise or'ing of garabage data 2017-12-11 22:36:59 +11:00
Kconfig chcr: Add support for Inline IPSec 2017-11-29 17:33:29 +11:00
Makefile chcr: Add support for Inline IPSec 2017-11-29 17:33:29 +11:00