diff options
author | Julia Lawall <[email protected]> | 2009-12-13 05:35:45 +0000 |
---|---|---|
committer | David S. Miller <[email protected]> | 2009-12-13 19:56:35 -0800 |
commit | 2447f2f3c38d3058d50de93df225ee6ad295932b (patch) | |
tree | 411f7dde320c07ec45cf354a62ca1f04263fc532 /scripts/basic/docproc.c | |
parent | 94de803db748b902a9442fcfd7aad31a2fde43b7 (diff) |
drivers/net/cpmac.c: Correct code taking the size of a pointer
sizeof(dev->dev_addr) is the size of a pointer. On the other hand,
sizeof(pdata->dev_addr) is the size of an array, so use that instead.
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 <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'scripts/basic/docproc.c')
0 files changed, 0 insertions, 0 deletions