]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: omap-sham - Verify page zone of scatterlists before starting DMA
authorTero Kristo <t-kristo@ti.com>
Tue, 27 Feb 2018 13:30:34 +0000 (15:30 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 9 Mar 2018 14:45:36 +0000 (22:45 +0800)
commit0b6ce6b7afdb6d72719c2cdd3437811d6a3f54fb
tree3848e9cdbdfb44d255e70f3fd55ed8fc4c853a71
parent5ff0a09a2c754c9681aef6a6847f2d8b33967e3c
crypto: omap-sham - Verify page zone of scatterlists before starting DMA

In certain platforms like DRA7xx having memory > 2GB with LPAE enabled
has a constraint that DMA can be done with the initial 2GB and marks it
as ZONE_DMA. But openssl when used with cryptodev does not make sure that
input buffer is DMA capable. So, adding a check to verify if the input
buffer is capable of DMA.

Signed-off-by: Tero Kristo <t-kristo@ti.com>
Reported-by: Aparna Balasubramanian <aparnab@ti.com>
Reviewed-by: Lokesh Vutla <lokeshvutla@ti.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/omap-sham.c