git.droids-corp.org
/
dpdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b0cd767
)
net/ice/base: fix bitmap set function
author
Simei Su
<simei.su@intel.com>
Tue, 20 Oct 2020 08:46:39 +0000
(16:46 +0800)
committer
Ferruh Yigit
<ferruh.yigit@intel.com>
Tue, 3 Nov 2020 22:24:24 +0000
(23:24 +0100)
This patch corrects an upper limit value in for loop.
Fixes:
dd4a3cef556a
("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>
drivers/net/ice/base/ice_bitops.h
patch
|
blob
|
history
diff --git
a/drivers/net/ice/base/ice_bitops.h
b/drivers/net/ice/base/ice_bitops.h
index
f954a74
..
3954896
100644
(file)
--- a/
drivers/net/ice/base/ice_bitops.h
+++ b/
drivers/net/ice/base/ice_bitops.h
@@
-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);
}