diff options
| author | Stephan Mueller <[email protected]> | 2018-07-07 18:41:47 +0000 |
|---|---|---|
| committer | Herbert Xu <[email protected]> | 2018-07-13 10:24:23 +0000 |
| commit | 2546da99212f22034aecf279da9c47cbfac6c981 (patch) | |
| tree | e7812d62c3febd6ce73707e9442610253e8a774b /lib/mpi/mpi-pow.c | |
| parent | crypto: x86 - Add missing RETs (diff) | |
| download | kernel-2546da99212f22034aecf279da9c47cbfac6c981.tar.gz kernel-2546da99212f22034aecf279da9c47cbfac6c981.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 <[email protected]>
Reported-by: [email protected]
#syz test: https://github.com/google/kmsan.git master
CC: <[email protected]> #4.14
Fixes: e870456d8e7c ("crypto: algif_skcipher - overhaul memory management")
Fixes: d887c52d6ae4 ("crypto: algif_aead - overhaul memory management")
Signed-off-by: Herbert Xu <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-pow.c')
0 files changed, 0 insertions, 0 deletions
