Skip to content

Commit 13aa5a8

Browse files
committed
netfilter: nft_set_bitmap: incorrect bitmap size
priv->bitmap_size stores the real bitmap size, instead of the full struct nft_bitmap object. Fixes: 665153f ("netfilter: nf_tables: add bitmap set type") Signed-off-by: Pablo Neira Ayuso <[email protected]>
1 parent 4b86c45 commit 13aa5a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/netfilter/nft_set_bitmap.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ static int nft_bitmap_init(const struct nft_set *set,
258258
{
259259
struct nft_bitmap *priv = nft_set_priv(set);
260260

261-
priv->bitmap_size = nft_bitmap_total_size(set->klen);
261+
priv->bitmap_size = nft_bitmap_size(set->klen);
262262

263263
return 0;
264264
}

0 commit comments

Comments
 (0)