aboutsummaryrefslogtreecommitdiff
path: root/drivers/mtd/lpddr/lpddr_cmds.c
diff options
context:
space:
mode:
authorGilad Ben-Yossef <[email protected]>2018-01-07 12:14:30 +0000
committerGreg Kroah-Hartman <[email protected]>2018-01-08 16:27:23 +0100
commit2c8cdb6b5d7b23fb6085f3581c76c1d5fc321343 (patch)
treef9ab1b1caaa6088541cb455bd09d8d0c4ea0911d /drivers/mtd/lpddr/lpddr_cmds.c
parent9b3044b88ebe580883ac20cb5bcf8a3f3e4006f8 (diff)
staging: ccree: do not map bufs in ahash_init
hash_init was mapping DMA memory that were then being unmap in hash_digest/final/finup callbacks, which is against the Crypto API usage rules (see discussion at https://www.mail-archive.com/[email protected]/msg30077.html) Fix it by moving all buffer mapping/unmapping or each Crypto API op. This also properly deals with hash_import() not knowing if hash_init was called or not as it now no longer matters. Signed-off-by: Gilad Ben-Yossef <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/mtd/lpddr/lpddr_cmds.c')
0 files changed, 0 insertions, 0 deletions