Skip to contentSkip to conversation

netfilter: nft_set_bitmap: incorrect bitmap size

PATCH New Pablo Neira Ayuso 1 participant 1 message Feb 26, 2017

Subsystems (2)
lore
Share & tools
lore

Pablo Neira Ayuso

author maintainer
#0 lore raw

PATCH 1/1 netfilter: nft_set_bitmap: incorrect bitmap size

priv->bitmap_size stores the real bitmap size, instead of the full struct nft_bitmap object.

Fixes 665153ff5752 ("netfilter: nf_tables: add bitmap set type")
---
 net/netfilter/nft_set_bitmap.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
net/netfilter/nft_set_bitmap.c +1 -1
index 97f9649bcc7e..152d226552c1 100644
@@ -258,7 +258,7 @@ static int nft_bitmap_init(const struct nft_set *set,
 {
 	struct nft_bitmap *priv = nft_set_priv(set);
 
-	priv->bitmap_size = nft_bitmap_total_size(set->klen);
+	priv->bitmap_size = nft_bitmap_size(set->klen);
 
 	return 0;
 }
Signature · 1 line
2.1.4