Tag: 71c3ebfdb27b50dcaef38b6f70da82b9142c5fb6

netfilter: SNMP NAT: correct the size argument to kzalloc

Author: Julia Lawall <julia@diku.dk> 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: …

Continue reading