diff options
author | Julia Lawall <julia@diku.dk> | 2009-12-13 12:40:39 +0100 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2010-01-12 18:19:31 +0100 |
commit | 42ecda1ae80b4b19c3c7ba36e3141c4c19e1fe70 (patch) | |
tree | 4fafa20ecea17a6bf05675d963d4f078e2ddeab4 /init | |
parent | 05c694681e059b9e99449bb239367ab486cd1fca (diff) | |
download | op-kernel-dev-42ecda1ae80b4b19c3c7ba36e3141c4c19e1fe70.zip op-kernel-dev-42ecda1ae80b4b19c3c7ba36e3141c4c19e1fe70.tar.gz |
MIPS: Alchemy: Correct code taking the size of a pointer
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>
Diffstat (limited to 'init')
0 files changed, 0 insertions, 0 deletions