08 Oct, 2016
1 commit
-
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
Signed-off-by: David S. Miller
29 Aug, 2016
1 commit
-
Trivial fix to spelling mistake in dev_err message.
Signed-off-by: Colin Ian King
Signed-off-by: David S. Miller
02 Aug, 2016
1 commit
-
All assignments to components of priv should only
occur after the check if prif is NULL.Signed-off-by: Heinrich Schuchardt
Signed-off-by: David S. Miller
21 Jul, 2016
2 commits
-
module_platform_driver() makes the code simpler by eliminating
boilerplate code.Signed-off-by: Wei Yongjun
Signed-off-by: David S. Miller -
Remove .owner field if calls are used which set it automatically.
Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci
Signed-off-by: Wei Yongjun
Signed-off-by: David S. Miller
17 Jul, 2016
2 commits
-
It was used err_xxx for labeled statement, it is
not easy to understand, now use free_xxx for labeled
statement.Signed-off-by: Zhao Qiang
Signed-off-by: David S. Miller -
'uhdlc_priv' has freed twice, drop the first one.
Signed-off-by: Zhao Qiang
Signed-off-by: David S. Miller
16 Jul, 2016
1 commit
-
There is a 2 byte struct whole after line.loopback so we need to clear
that out to avoid disclosing stack information.Fixes: c19b6d246a35 ('drivers/net: support hdlc function for QE-UCC')
Signed-off-by: Dan Carpenter
Signed-off-by: David S. Miller
08 Jun, 2016
1 commit
-
The driver add hdlc support for Freescale QUICC Engine.
It support NMSI and TSA mode.Signed-off-by: Zhao Qiang
Signed-off-by: David S. Miller