diff options
author | 2017-04-20 09:54:24 +0200 | |
---|---|---|
committer | 2017-04-26 09:30:22 +0200 | |
commit | 22d4536d2c836f74421d01d534b3117223a822a0 (patch) | |
tree | 22034a41030a6ce489a687cf4e7a9b3bc3f8b2f1 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | netfilter: conntrack: mark extension structs as const (diff) | |
download | wireguard-linux-22d4536d2c836f74421d01d534b3117223a822a0.tar.xz wireguard-linux-22d4536d2c836f74421d01d534b3117223a822a0.zip |
netfilter: conntrack: handle initial extension alloc via krealloc
krealloc(NULL, ..) is same as kmalloc(), so we can avoid special-casing
the initial allocation after the prealloc removal (we had to use
->alloc_len as the initial allocation size).
This also means we do not zero the preallocated memory anymore; only
offsets[]. Existing code makes sure the new (used) extension space gets
zeroed out.
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions