summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorMarek Szyprowski <m.szyprowski@samsung.com>2016-04-26 09:29:26 +0200
committerBen Hutchings <ben@decadent.org.uk>2016-08-22 22:37:08 +0100
commit4a223a2dd4e405a1c1022e7a6787fdc5239ad7e5 (patch)
treeaa5a5c51f8cd0341713bedb5a3c9d43c855adac1 /fs
parent5dd415ec496c44bbe4f95d36b96da96d052c6015 (diff)
downloadlinux-rt-4a223a2dd4e405a1c1022e7a6787fdc5239ad7e5.tar.gz
crypto: s5p-sss - fix incorrect usage of scatterlists api
commit d1497977fecb9acce05988d6322ad415ef93bb39 upstream. sg_dma_len() macro can be used only on scattelists which are mapped, so all calls to it before dma_map_sg() are invalid. Replace them by proper check for direct sg segment length read. Fixes: a49e490c7a8a ("crypto: s5p-sss - add S5PV210 advanced crypto engine support") Fixes: 9e4a1100a445 ("crypto: s5p-sss - Handle unaligned buffers") Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> Reviewed-by: Krzysztof Kozlowski <k.kozlowski@samsung.com> Acked-by: Vladimir Zapolskiy <vz@mleia.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> [bwh: Backported to 3.2: unaligned DMA is unsupported so there is a different set of calls to replace] Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'fs')
0 files changed, 0 insertions, 0 deletions