crypto: omap-sham - force word alignment on the xmit-buf also
authorTero Kristo <t-kristo@ti.com>
Wed, 24 May 2017 07:35:34 +0000 (10:35 +0300)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sat, 10 Jun 2017 04:04:20 +0000 (12:04 +0800)
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>
drivers/crypto/omap-sham.c

index dc091b27affa9af7cd43d31d3d4259ad149ddd12..9ad9d399daf11caf582bd106738559e655667817 100644 (file)
@@ -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;