summaryrefslogtreecommitdiffstats
path: root/scripts/coccicheck
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2016-02-03 14:39:26 +0100
committerHerbert Xu <herbert@gondor.apana.org.au>2016-02-06 08:23:55 +0100
commit6454c2b83f719057069777132b13949e4c6b6350 (patch)
tree49d2a92d72b5461fd9388b058d912368d0e85c9c /scripts/coccicheck
parentcrypto: algif_skcipher - Do not assume that req is unchanged (diff)
downloadlinux-6454c2b83f719057069777132b13949e4c6b6350.tar.xz
linux-6454c2b83f719057069777132b13949e4c6b6350.zip
crypto: algif_skcipher - Do not dereference ctx without socket lock
Any access to non-constant bits of the private context must be done under the socket lock, in particular, this includes ctx->req. This patch moves such accesses under the lock, and fetches the tfm from the parent socket which is guaranteed to be constant, rather than from ctx->req. Cc: stable@vger.kernel.org Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'scripts/coccicheck')
0 files changed, 0 insertions, 0 deletions