]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: conntrack: avoid excess memory allocation
authorFlorian Westphal <fw@strlen.de>
Wed, 26 Oct 2016 21:46:17 +0000 (23:46 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 27 Oct 2016 16:29:02 +0000 (18:29 +0200)
commit65de85be9a1b7ed2071c1158e4eadfcc06f8700b
tree01842ce4065a1ece498be77de1c33955ba70781d
parenta417ceb6ea4533db878cac0c81bcf3b03a5a6ed6
netfilter: conntrack: avoid excess memory allocation

This is now a fixed-size extension, so we don't need to pass a variable
alloc size.  This (harmless) error results in allocating 32 instead of
the needed 16 bytes for this extension as the size gets passed twice.

Fixes: 3ff27d317c780 ("netfilter: conntrack: support a fixed size of 128 distinct labels")
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/net/netfilter/nf_conntrack_labels.h