diff options
author | Christophe Jaillet <christophe.jaillet@wanadoo.fr> | 2016-10-07 22:58:47 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-10-08 00:04:48 -0400 |
commit | 776482cd8d8af063878ed22a1a0d44e4c6238a94 (patch) | |
tree | 5c3eae9946c74dd3fc456dd965c4b88b42cee8b2 /net/sctp | |
parent | fa6114d4bde70152765ba1c35fed4fcd8481faf6 (diff) |
wan/fsl_ucc_hdlc: Fix size used in dma_free_coherent()
Size used with 'dma_alloc_coherent()' and 'dma_free_coherent()' should be
consistent.
Here, the size of a pointer is used in dma_alloc... and the size of the
pointed structure is used in dma_free...
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: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sctp')
0 files changed, 0 insertions, 0 deletions