RE: [EXT] [PATCH] bnx2x: Fix potential infinite loop

2021-04-07 Thread Sudarsana Reddy Kalluru
el-janit...@vger.kernel.org; linux-ker...@vger.kernel.org > Subject: [EXT] [PATCH] bnx2x: Fix potential infinite loop > > External Email > > -- > From: Colin Ian King > > The for_each_tx_queue loop it

Re: [PATCH] bnx2x: Fix potential infinite loop

2021-04-07 Thread David Miller
From: Colin King Date: Wed, 7 Apr 2021 15:28:02 +0100 > From: Colin Ian King > > The for_each_tx_queue loop iterates with a u8 loop counter i and > compares this with the loop upper limit of bp->num_queues that > is an int type. There is a potential infinite loop if bp->num_queues > is larger

[PATCH] bnx2x: Fix potential infinite loop

2021-04-07 Thread Colin King
From: Colin Ian King The for_each_tx_queue loop iterates with a u8 loop counter i and compares this with the loop upper limit of bp->num_queues that is an int type. There is a potential infinite loop if bp->num_queues is larger than the u8 loop counter. Fix this by making the loop counter the sa