diff options
author | Julia Lawall <julia@diku.dk> | 2010-01-04 15:21:31 +0100 |
---|---|---|
committer | Patrick McHardy <kaber@trash.net> | 2010-01-04 15:21:31 +0100 |
commit | 71c3ebfdb27b50dcaef38b6f70da82b9142c5fb6 (patch) | |
tree | 06363bb4142abdf0c308b60198d23f2849a7355d /tools/perf/builtin-top.c | |
parent | ceba0b29e002e6151b6b5ead8db9c664b58d8d21 (diff) |
netfilter: SNMP NAT: correct the size argument to kzalloc
obj has type struct snmp_object **, not struct snmp_object *. But indeed
it is not even clear why kmalloc is needed. The memory is freed by the end
of the function, so the local variable of pointer type should be sufficient.
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: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'tools/perf/builtin-top.c')
0 files changed, 0 insertions, 0 deletions