Thread (1 message) flat view 1 message, 1 author, 2010-01-04

Re: [PATCH 5/5] net/ipv4 : Correct the size argument to kzalloc

From: Patrick McHardy <hidden>
Date: 2010-01-04 14:23:29
Also in: kernel-janitors, lkml, netfilter-devel

Julia Lawall wrote:
From: Julia Lawall <redacted>

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.
Thanks. As this is basically just an unneeded and oversized allocation
without any bad consequences, I've applied it to nf-next-2.6.git.

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help