diff options
author | Christophe Jaillet <christophe.jaillet@wanadoo.fr> | 2016-10-07 22:36:20 +0200 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2016-10-21 11:03:41 +0800 |
commit | 4c36941aee7f9bb3a1183ba89aa15b86622c8668 (patch) | |
tree | c317aabc87c632445805b702e588ef2335905168 /include/crypto | |
parent | f34dad1721642989336283c9e6c3b8f6b23fa67c (diff) | |
download | linux-4c36941aee7f9bb3a1183ba89aa15b86622c8668.tar.gz linux-4c36941aee7f9bb3a1183ba89aa15b86622c8668.tar.bz2 linux-4c36941aee7f9bb3a1183ba89aa15b86622c8668.zip |
crypto: crypto4xx - Fix size used in dma_free_coherent()
The size used in 'dma_free_coherent()' looks un-initialized here.
ctx->sa_len is set a few lines below and is apparently not set by the
caller.
So use 'size' as in the corresponding 'dma_alloc_coherent()' a few lines
above.
This has been spotted with coccinelle, using the following script:
////////////////////
@r@
expression x0, x1, y0, y1, z0, z1, t0, t1, ret;
@@
* ret = dma_alloc_coherent(x0, y0, z0, t0);
...
* dma_free_coherent(x1, y1, ret, t1);
@script:python@
y0 << r.y0;
y1 << r.y1;
@@
if y1.find(y0) == -1:
print "WARNING: sizes look different: '%s' vs '%s'" % (y0, y1)
////////////////////
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'include/crypto')
0 files changed, 0 insertions, 0 deletions