summaryrefslogtreecommitdiff
path: root/crypto/michael_mic.c
diff options
context:
space:
mode:
authorDan Williams <dan.j.williams@intel.com>2008-12-08 13:46:00 -0700
committerDan Williams <dan.j.williams@intel.com>2008-12-08 13:46:00 -0700
commit9ae4a416cf931d24714e96de53cb5bd4a5c9414f (patch)
treed5480f45a62110d4ed75da01f8a98487bb62cd84 /crypto/michael_mic.c
parent0ac11767a82302fe8d836223a0d14f9a3ad0708c (diff)
downloadlinux-crypto-9ae4a416cf931d24714e96de53cb5bd4a5c9414f.tar.gz
linux-crypto-9ae4a416cf931d24714e96de53cb5bd4a5c9414f.zip
async_xor: dma_map destination DMA_BIDIRECTIONAL
Mapping the destination multiple times is a misuse of the dma-api. Since the destination may be reused as a source, ensure that it is only mapped once and that it is mapped bidirectionally. This appears to add ugliness on the unmap side in that it always reads back the destination address from the descriptor, but gcc can determine that dma_unmap is a nop and not emit the code that calculates its arguments. Cc: <stable@kernel.org> Cc: Saeed Bishara <saeed@marvell.com> Acked-by: Yuri Tikhonov <yur@emcraft.com> Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'crypto/michael_mic.c')
0 files changed, 0 insertions, 0 deletions