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

From: Patrick McHardy
Date: Mon Jan 04 2010 - 09:23:32 EST


Julia Lawall wrote:
> From: Julia Lawall <julia@xxxxxxx>
>
> 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.


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/