crypto: algif_aead - fix uninitialized variable warning
PATCH 1/1 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 <[email protected]>
Signed-off-by Stephan Mueller <[email protected]>
--- crypto/algif_aead.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
crypto/algif_aead.c +1 -1
@@ -420,7 +420,7 @@ static int aead_recvmsg_async(struct socket *sock, struct msghdr *msg,unsigned int i, reqlen =GET_REQ_SIZE (tfm);int err = -ENOMEM ;unsigned long used; -size_t outlen; +size_t outlen =0 ;size_t usedpages =0 ;lock_sock (sk);
Signature · 1 line
2.9.3
Herbert Xu
maintainerQuoted 6 lines · Stephan Müller
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 <[email protected]>Signed-off-by Stephan Mueller <[email protected]>
Patch applied. Thanks.
Signature · 3 lines
Email: Herbert Xu <[email protected]> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt