git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
05c6946
)
MIPS: Alchemy: Correct code taking the size of a pointer
author
Julia Lawall
<julia@diku.dk>
Sun, 13 Dec 2009 11:40:39 +0000
(12:40 +0100)
committer
Ralf Baechle
<ralf@linux-mips.org>
Tue, 12 Jan 2010 17:19:31 +0000
(18:19 +0100)
sizeof(dp) is just the size of the pointer. Change it to the size of the
referenced structure.
A simplified version of the semantic patch that finds this problem is as
follows: (http://coccinelle.lip6.fr/)
// <smpl>
@@
expression *x;
expression f;
type T;
@@
*f(...,(T)x,...)
// </smpl>
Signed-off-by: Julia Lawall <julia@diku.dk>
Patchwork: http://patchwork.linux-mips.org/patch/789/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/alchemy/common/dbdma.c
patch
|
blob
|
history
diff --cc
arch/mips/alchemy/common/dbdma.c
Simple merge