summaryrefslogtreecommitdiffstats
path: root/init
diff options
context:
space:
mode:
authorTero Kristo <t-kristo@ti.com>2020-05-27 15:24:27 +0300
committerHerbert Xu <herbert@gondor.apana.org.au>2020-06-04 22:03:41 +1000
commit63832a0c6fe180aa34d2a77052aa501be6281c99 (patch)
tree6e49fc660e4d244dc52cbc39ab3972869022186e /init
parent6395166d7a19019d5e9574eb9ecdaf0028abb887 (diff)
downloadlinux-63832a0c6fe180aa34d2a77052aa501be6281c99.tar.gz
linux-63832a0c6fe180aa34d2a77052aa501be6281c99.tar.bz2
linux-63832a0c6fe180aa34d2a77052aa501be6281c99.zip
crypto: omap-sham - fix very small data size handling
With very small data sizes, the whole data can end up in the xmit buffer. This code path does not set the sg_len properly which causes the core dma framework to crash. Fix by adding the proper size in place. Also, the data length must be a multiple of block-size, so extend the DMA data size while here. Signed-off-by: Tero Kristo <t-kristo@ti.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'init')
0 files changed, 0 insertions, 0 deletions