Re: [PATCH][V2] isci: Fix infinite loop in while loop

From: Martin K. Petersen
Date: Fri Apr 20 2018 - 19:25:01 EST


> In the case when the phy_mask is bitwise anded with the phy_index bit
> is zero the continue statement currently jumps to the next iteration
> of the while loop and phy_index is never actually incremented,
> potentially causing an infinite loop if phy_index is less than
> SCI_MAX_PHS. Fix this by turning the while loop into a for loop.

Applied to 4.17/scsi-fixes. Thanks!

Martin K. Petersen Oracle Linux Engineering