git: df83413be328 - stable/15 - igc: fix iterator type

From: Kevin Bowling <kbowling_at_FreeBSD.org>
Date: Tue, 25 Aug 2026 00:31:41 UTC
The branch stable/15 has been updated by kbowling:

URL: https://cgit.FreeBSD.org/src/commit/?id=df83413be3288c0c6b7d9be95f47933d2807204f

commit df83413be3288c0c6b7d9be95f47933d2807204f
Author:     Amir Avivi <amir.avivi@intel.com>
AuthorDate: 2026-08-11 19:33:49 +0000
Commit:     Kevin Bowling <kbowling@FreeBSD.org>
CommitDate: 2026-08-25 00:28:44 +0000

    igc: fix iterator type
    
    DPDK commit message
    
    net/e1000/base: fix iterator type
    
    Fix static analysis warning about comparison between types of
    incompatible width, which might lead to an infinite loop due to
    overflow.
    
    Fixes: af75078fece3 ("first public release")
    Cc: stable@dpdk.org
    
    Signed-off-by: Amir Avivi <amir.avivi@intel.com>
    Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com>
    Acked-by: Bruce Richardson <bruce.richardson@intel.com>
    
    Obtained from:  DPDK (3d36053991)
    
    (cherry picked from commit 5587cb18b168f57a4d68c7e58ec660ab2a5ce4da)
---
 sys/dev/igc/igc_phy.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/sys/dev/igc/igc_phy.c b/sys/dev/igc/igc_phy.c
index 34640e7acd2d..13dac1066f27 100644
--- a/sys/dev/igc/igc_phy.c
+++ b/sys/dev/igc/igc_phy.c
@@ -802,7 +802,8 @@ s32 igc_phy_has_link_generic(struct igc_hw *hw, u32 iterations,
 			       u32 usec_interval, bool *success)
 {
 	s32 ret_val = IGC_SUCCESS;
-	u16 i, phy_status;
+	u16 phy_status;
+	u32 i;
 
 	DEBUGFUNC("igc_phy_has_link_generic");