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:
52ee264
)
drivers/net : Correct the size argument to kzalloc
author
Julia Lawall
<julia@diku.dk>
Tue, 29 Dec 2009 09:15:42 +0000
(09:15 +0000)
committer
David S. Miller
<davem@davemloft.net>
Mon, 4 Jan 2010 05:42:51 +0000
(21:42 -0800)
lp->rx_skb has type struct sk_buff **, not struct sk_buff *, so the
elements of the array should have pointer type, not structure type.
The semantic patch that makes this change is as follows:
(http://coccinelle.lip6.fr/)
// <smpl>
@disable sizeof_type_expr@
type T;
T **x;
@@
x =
<+...sizeof(
- T
+ *x
)...+>
// </smpl>
Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ll_temac_main.c
patch
|
blob
|
history
diff --cc
drivers/net/ll_temac_main.c
Simple merge