aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/builtin-top.c
diff options
context:
space:
mode:
authorJulia Lawall <julia@diku.dk>2010-01-04 15:21:31 +0100
committerPatrick McHardy <kaber@trash.net>2010-01-04 15:21:31 +0100
commit71c3ebfdb27b50dcaef38b6f70da82b9142c5fb6 (patch)
tree06363bb4142abdf0c308b60198d23f2849a7355d /tools/perf/builtin-top.c
parentceba0b29e002e6151b6b5ead8db9c664b58d8d21 (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