diff options
author | Stephan Mueller <smueller@chronox.de> | 2018-07-07 20:41:47 +0200 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2018-07-13 18:24:23 +0800 |
commit | 397655998b16dd121ae8963df8911d66873a0d15 (patch) | |
tree | 7365bc1875077d5df424ee8bf74eb103d4f0b079 /crypto/gf128mul.c | |
parent | 366a20ff6c66ccac3af29059fd5dda09011321e3 (diff) | |
download | linux-crypto-397655998b16dd121ae8963df8911d66873a0d15.tar.gz linux-crypto-397655998b16dd121ae8963df8911d66873a0d15.zip |
crypto: af_alg - Initialize sg_num_bytes in error code path
The RX SGL in processing is already registered with the RX SGL tracking
list to support proper cleanup. The cleanup code path uses the
sg_num_bytes variable which must therefore be always initialized, even
in the error code path.
Signed-off-by: Stephan Mueller <smueller@chronox.de>
Reported-by: syzbot+9c251bdd09f83b92ba95@syzkaller.appspotmail.com
#syz test: https://github.com/google/kmsan.git master
CC: <stable@vger.kernel.org> #4.14
Fixes: 8a15a4bf1947 ("crypto: algif_skcipher - overhaul memory management")
Fixes: 0c2a2d0aa6e4 ("crypto: algif_aead - overhaul memory management")
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/gf128mul.c')
0 files changed, 0 insertions, 0 deletions