mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-10 15:58:47 +00:00
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>
This commit is contained in:
parent
b0d2193ba6
commit
6ee55a6f50
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user