Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

crypto: algif_aead - fix uninitialized variable warning

In case the user provided insufficient data, the code may return
prematurely without any operation. In this case, the processed
data indicated with outlen is zero.

Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Stephan Mueller <smueller@chronox.de>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

authored by

Stephan Mueller and committed by
Herbert Xu
678b5c6b 48a99272

+1 -1
+1 -1
crypto/algif_aead.c
··· 420 unsigned int i, reqlen = GET_REQ_SIZE(tfm); 421 int err = -ENOMEM; 422 unsigned long used; 423 - size_t outlen; 424 size_t usedpages = 0; 425 426 lock_sock(sk);
··· 420 unsigned int i, reqlen = GET_REQ_SIZE(tfm); 421 int err = -ENOMEM; 422 unsigned long used; 423 + size_t outlen = 0; 424 size_t usedpages = 0; 425 426 lock_sock(sk);