Skip to content
Commit 8ae18738 authored by Herbert Xu's avatar Herbert Xu Committed by Greg Kroah-Hartman
Browse files

tls: Only use data field in crypto completion function

[ Upstream commit 8d338c76

 ]

The crypto_async_request passed to the completion is not guaranteed
to be the original request object.  Only the data field can be relied
upon.

Fix this by storing the socket pointer with the AEAD request.

Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
Stable-dep-of: a2713257

 ("tls: Use size_add() in call to struct_size()")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 65e65a8b
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment