summaryrefslogtreecommitdiffstats
path: root/crypto/blowfish_generic.c
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 /crypto/blowfish_generic.c
parent3a61cdf43e670b99404436a5854aae993ef616ed (diff)
downloadlinux-5d1cdfde11a5f0c9a21b8b2b085bac678e8a18b7.tar.gz
linux-5d1cdfde11a5f0c9a21b8b2b085bac678e8a18b7.tar.bz2
linux-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 'crypto/blowfish_generic.c')
0 files changed, 0 insertions, 0 deletions