aboutsummaryrefslogtreecommitdiff
path: root/include/linux/fpga
diff options
context:
space:
mode:
authorColin Ian King <[email protected]>2018-04-20 10:57:16 +0100
committerMartin K. Petersen <[email protected]>2018-04-20 19:23:32 -0400
commit4bc83b3f272fe8f36450f9c003df49cf07ffe5fd (patch)
treef72e55b77d02470d1dfdcadca9a713a8c985ba32 /include/linux/fpga
parentf286299c1d0ba5e2ca0377610307b370fe178767 (diff)
scsi: isci: Fix infinite loop in while loop
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. Signed-off-by: Colin Ian King <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'include/linux/fpga')
0 files changed, 0 insertions, 0 deletions