ee 06363bb4142abdf0c308b60198d23f2849a7355d parent ceba0b29e002e6151b6b5ead8db9c664b58d8d21 author Julia Lawall 1262614891 +0100 committer Patrick McHardy 1262614891 +0100 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/) // @disable sizeof_type_expr@ type T; T **x; @@ x = <+...sizeof( - T + *x )...+> // Signed-off-by: Julia Lawall Signed-off-by: Patrick McHardy †Õ