git: 5587cb18b168 - main - igc: fix iterator type

Kevin Bowling <[email protected]>
Newsgroups gmane.os.freebsd.devel.cvs.src
Message-ID <6a7b8d52.39005.139bf1f0__22766.8721623317$1786482125$gmane$org@gitrepo.freebsd.org>
The branch main has been updated by kbowling:

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

commit 5587cb18b168f57a4d68c7e58ec660ab2a5ce4da
Author:     Amir Avivi <[email protected]>
AuthorDate: 2026-08-11 19:33:49 +0000
Commit:     Kevin Bowling <[email protected]>
CommitDate: 2026-08-11 20:59:32 +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: [email protected]
    
    Signed-off-by: Amir Avivi <[email protected]>
    Signed-off-by: Anatoly Burakov <[email protected]>
    Acked-by: Bruce Richardson <[email protected]>
    
    Obtained from:  DPDK (3d36053991)
    MFC after:      2 weeks
---
 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");
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.