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)
commitcdb436d181d21af4d273b49ec7734eecd6a37fe9
tree01842ce4065a1ece498be77de1c33955ba70781d
parentf1d505bb762e30bf316ff5d3b604914649d6aed3
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: 23014011ba420 ("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