Skip to content
Commit 42ecda1a authored by Julia Lawall's avatar Julia Lawall Committed by Ralf Baechle
Browse files

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: default avatarJulia Lawall <julia@diku.dk>
Patchwork: http://patchwork.linux-mips.org/patch/789/
Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent 05c69468
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment