Skip to content

Commit

Permalink
crypto: omap-sham - force word alignment on the xmit-buf also
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Tero Kristo authored and Herbert Xu committed Jun 10, 2017
1 parent 898d86a commit c28e8f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/crypto/omap-sham.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c28e8f2

Please sign in to comment.