linux/drivers/net/wan
Christophe Jaillet 776482cd8d 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>
2016-10-08 00:04:48 -04:00
..
lmc treewide: replace dev->trans_start update with helper 2016-05-04 14:16:49 -04:00
.gitignore
c101.c
cosa.c treewide: replace dev->trans_start update with helper 2016-05-04 14:16:49 -04:00
cosa.h
dlci.c
dscc4.c
farsync.c treewide: replace dev->trans_start update with helper 2016-05-04 14:16:49 -04:00
farsync.h
fsl_ucc_hdlc.c wan/fsl_ucc_hdlc: Fix size used in dma_free_coherent() 2016-10-08 00:04:48 -04:00
fsl_ucc_hdlc.h drivers/net/fsl_ucc: Do not prefix header guard with CONFIG_ 2016-06-08 11:07:17 -07:00
hd64570.c
hd64570.h
hd64572.c
hd64572.h
hdlc_cisco.c
hdlc_fr.c
hdlc_ppp.c
hdlc_raw_eth.c
hdlc_raw.c
hdlc_x25.c
hdlc.c
hostess_sv11.c
ixp4xx_hss.c
Kconfig Maxim/driver: Add driver for maxim ds26522 2016-06-29 04:05:14 -04:00
lapbether.c
Makefile Maxim/driver: Add driver for maxim ds26522 2016-06-29 04:05:14 -04:00
n2.c
pc300too.c
pci200syn.c
sbni.c net: wan: sbni: Spelling s/acknoweledge/acknowledge/, Grammar 2016-08-31 09:26:30 -07:00
sbni.h
sdla.c
sealevel.c
slic_ds26522.c Maxim/driver: Add driver for maxim ds26522 2016-06-29 04:05:14 -04:00
slic_ds26522.h Maxim/driver: Add driver for maxim ds26522 2016-06-29 04:05:14 -04:00
wanxl.c
wanxl.h
wanxlfw.inc_shipped
wanxlfw.S
x25_asy.c
x25_asy.h
z85230.c
z85230.h