diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2021-06-24 08:35:29 +0200 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2021-06-28 05:28:08 +0200 |
commit | 6ee55a6f50fe28207d829a535effcedad37991ea (patch) | |
tree | f88d11db44f1a0ac23db76de362a02ba133b9224 /drivers/crypto | |
parent | crypto: scatterwalk - Remove obsolete PageSlab check (diff) | |
download | linux-6ee55a6f50fe28207d829a535effcedad37991ea.tar.xz linux-6ee55a6f50fe28207d829a535effcedad37991ea.zip |
crypto: omap - Drop obsolete PageSlab check
As it is now legal to call flush_dcache_page on slab pages we
no longer need to do the check in the omap driver. This patch
also uses flush_dcache_page instead of flush_kernel_dcache_page
because the page we're writing to could be anything.
Reported-by: Ira Weiny <ira.weiny@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto')
-rw-r--r-- | drivers/crypto/omap-crypto.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/crypto/omap-crypto.c b/drivers/crypto/omap-crypto.c index 94b2dba90f0d..31bdb1d76d11 100644 --- a/drivers/crypto/omap-crypto.c +++ b/drivers/crypto/omap-crypto.c @@ -183,8 +183,7 @@ static void omap_crypto_copy_data(struct scatterlist *src, memcpy(dstb, srcb, amt); - if (!PageSlab(sg_page(dst))) - flush_kernel_dcache_page(sg_page(dst)); + flush_dcache_page(sg_page(dst)); kunmap_atomic(srcb); kunmap_atomic(dstb); |