diff options
author | Florian Westphal <fw@strlen.de> | 2017-04-20 09:54:24 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2017-04-26 09:30:22 +0200 |
commit | 22d4536d2c836f74421d01d534b3117223a822a0 (patch) | |
tree | 22034a41030a6ce489a687cf4e7a9b3bc3f8b2f1 /security/smack | |
parent | 23f671a1b56a4493075ab7263c78c526ac12a592 (diff) | |
download | blackbird-op-linux-22d4536d2c836f74421d01d534b3117223a822a0.tar.gz blackbird-op-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 'security/smack')
0 files changed, 0 insertions, 0 deletions