diff options
author | Julia Lawall <julia@diku.dk> | 2009-12-29 10:15:42 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-01-04 06:42:51 +0100 |
commit | 5d66fe92a19fb41373d13e75831169a6b5e5bef5 (patch) | |
tree | 4a988fc18972b460f9410ec9e0600ef799d42963 /drivers/ata/pata_ixp4xx_cf.c | |
parent | cxgb3i: Fix a login over vlan issue (diff) | |
download | linux-5d66fe92a19fb41373d13e75831169a6b5e5bef5.tar.xz linux-5d66fe92a19fb41373d13e75831169a6b5e5bef5.zip |
drivers/net : Correct the size argument to kzalloc
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>
Diffstat (limited to 'drivers/ata/pata_ixp4xx_cf.c')
0 files changed, 0 insertions, 0 deletions