Skip to content

Commit c28e8f2

Browse files
Tero Kristoherbertx
authored andcommitted
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>
1 parent 898d86a commit c28e8f2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/crypto/omap-sham.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ struct omap_sham_dev {
226226
struct dma_chan *dma_lch;
227227
struct tasklet_struct done_task;
228228
u8 polling_mode;
229-
u8 xmit_buf[BUFLEN];
229+
u8 xmit_buf[BUFLEN] OMAP_ALIGNED;
230230

231231
unsigned long flags;
232232
struct crypto_queue queue;

0 commit comments

Comments
 (0)