aboutsummaryrefslogtreecommitdiffstats
path: root/include/crypto/internal/hash.h
diff options
context:
space:
mode:
authorIra Weiny <ira.weiny@intel.com>2020-08-10 17:40:14 -0700
committerHerbert Xu <herbert@gondor.apana.org.au>2020-08-21 14:47:49 +1000
commit5d1cdfde11a5f0c9a21b8b2b085bac678e8a18b7 (patch)
tree7f37db3e3fdb1d0408a83ce589e9f39cd761f7a4 /include/crypto/internal/hash.h
parenthwrng: intel - cleanup initialization (diff)
downloadlinux-dev-5d1cdfde11a5f0c9a21b8b2b085bac678e8a18b7.tar.xz
linux-dev-5d1cdfde11a5f0c9a21b8b2b085bac678e8a18b7.zip
crypto: ux500 - Fix kmap() bug
Once the crypto hash walk is started by crypto_hash_walk_first() returning non-zero, crypto_hash_walk_done() must be called to unmap any memory which was mapped by *_walk_first(). Ensure crypto_hash_walk_done() is called properly by: 1) Re-arranging the check for device data to be prior to calling *_walk_first() 2) on error call crypto_hash_walk_done() with an error code to allow the hash walk code to clean up. While we are at it clean up the 'out' label to be more meaningful. Signed-off-by: Ira Weiny <ira.weiny@intel.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions