]> asedeno.scripts.mit.edu Git - linux.git/commit
crypto: hash - Prevent use of req->result in ahash update
authorKamil Konieczny <k.konieczny@partner.samsung.com>
Wed, 7 Mar 2018 10:49:33 +0000 (11:49 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 16 Mar 2018 15:35:52 +0000 (23:35 +0800)
commit3d053d53fcbe7343c89895bcfa2d6bc598740d55
treef65dc020cd23a2cb3f2cec1cdf7e799d6f03b732
parent5bfa7ac3883e702a0a0a33a8449b044d7dab3efe
crypto: hash - Prevent use of req->result in ahash update

Prevent improper use of req->result field in ahash update, init, export and
import functions in drivers code. A driver should use ahash request context
if it needs to save internal state.

Signed-off-by: Kamil Konieczny <k.konieczny@partner.samsung.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
include/crypto/hash.h