net/ice/base: fix bitmap set function
This patch corrects an upper limit value in for loop.
Fixes: dd4a3cef55
("net/ice/base: introduce and use bitmap set API")
Cc: stable@dpdk.org
Signed-off-by: Simei Su <simei.su@intel.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
This commit is contained in:
parent
b0cd767a75
commit
d647871c50
@ -395,7 +395,7 @@ ice_bitmap_set(ice_bitmap_t *dst, u16 pos, u16 num_bits)
|
||||
{
|
||||
u16 i;
|
||||
|
||||
for (i = pos; i < num_bits; i++)
|
||||
for (i = pos; i < pos + num_bits; i++)
|
||||
ice_set_bit(i, dst);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user