Skip to contentSkip to conversation

net/ice/base: fix a refactor error

PATCH Applied Simei Su 2 participants 2 messages Oct 20, 2020 Network drivers

lore
Share & tools
lore

Simei Su

author
#0 lore raw

PATCH 1/1 net/ice/base: fix a refactor error

This patch corrects an upper limit value in for loop.

Fixes dd4a3cef556a ("net/ice/base: introduce and use bitmap set API")
---
 drivers/net/ice/base/ice_bitops.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ice/base/ice_bitops.h +1 -1
index f954a74..3954896 100644
@@ -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);
 }
 
Signature · 1 line
2.9.5
Acked-by on v1 1/1 Applied
#1 lore raw
Quoted 10 lines

-----Original Message-----
From: Su, Simei <[email protected]>
Sent: Tuesday, October 20, 2020 4:47 PM
To: Zhang, Qi Z <[email protected]>; Yang, Qiming <[email protected]>
Cc: [email protected]; Allan, Bruce W <[email protected]>; Su, Simei <[email protected]>
Subject: [PATCH] net/ice/base: fix a refactor error

Quoted 5 lines

This patch corrects an upper limit value in for loop.

Fixes dd4a3cef556a ("net/ice/base: introduce and use bitmap set API")

Applied to dpdk-next-net-intel.

Thanks
Qi