|
@@ -1989,13 +1989,13 @@ static int nf_tables_set_alloc_name(struct nft_ctx *ctx, struct nft_set *set,
|
|
|
|
|
|
if (!sscanf(i->name, name, &tmp))
|
|
if (!sscanf(i->name, name, &tmp))
|
|
continue;
|
|
continue;
|
|
- if (tmp < 0 || tmp > BITS_PER_LONG * PAGE_SIZE)
|
|
|
|
|
|
+ if (tmp < 0 || tmp >= BITS_PER_BYTE * PAGE_SIZE)
|
|
continue;
|
|
continue;
|
|
|
|
|
|
set_bit(tmp, inuse);
|
|
set_bit(tmp, inuse);
|
|
}
|
|
}
|
|
|
|
|
|
- n = find_first_zero_bit(inuse, BITS_PER_LONG * PAGE_SIZE);
|
|
|
|
|
|
+ n = find_first_zero_bit(inuse, BITS_PER_BYTE * PAGE_SIZE);
|
|
free_page((unsigned long)inuse);
|
|
free_page((unsigned long)inuse);
|
|
}
|
|
}
|
|
|
|
|