aboutsummaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorJulia Lawall <[email protected]>2010-01-04 15:21:31 +0100
committerPatrick McHardy <[email protected]>2010-01-04 15:21:31 +0100
commit71c3ebfdb27b50dcaef38b6f70da82b9142c5fb6 (patch)
tree06363bb4142abdf0c308b60198d23f2849a7355d /include/linux
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 <[email protected]> Signed-off-by: Patrick McHardy <[email protected]>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions