summaryrefslogtreecommitdiffstats
path: root/drivers/crypto/omap-sham.c
diff options
context:
space:
mode:
authorTero Kristo <t-kristo@ti.com>2017-05-24 09:35:34 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2017-06-10 06:04:20 +0200
commitc28e8f21642fd01a65687de9bfa5307fdcfe9966 (patch)
treeb563535c9f46068e417227ae01c73700251cf37f /drivers/crypto/omap-sham.c
parentcrypto: omap-sham - fix closing of hash with separate finalize call (diff)
downloadlinux-c28e8f21642fd01a65687de9bfa5307fdcfe9966.tar.xz
linux-c28e8f21642fd01a65687de9bfa5307fdcfe9966.zip
crypto: omap-sham - force word alignment on the xmit-buf also
This was previously missed from the code, causing SDMA to hang in some cases where the buffer ended up being not aligned. Signed-off-by: Tero Kristo <t-kristo@ti.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to '')
-rw-r--r--drivers/crypto/omap-sham.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/crypto/omap-sham.c b/drivers/crypto/omap-sham.c
index dc091b27affa..9ad9d399daf1 100644
--- a/drivers/crypto/omap-sham.c
+++ b/drivers/crypto/omap-sham.c
@@ -226,7 +226,7 @@ struct omap_sham_dev {
struct dma_chan *dma_lch;
struct tasklet_struct done_task;
u8 polling_mode;
- u8 xmit_buf[BUFLEN];
+ u8 xmit_buf[BUFLEN] OMAP_ALIGNED;
unsigned long flags;
struct crypto_queue queue;