Home
last modified time | relevance | path

Searched hist:"4 bc83b3f" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/scsi/isci/
H A Dport_config.c4bc83b3f Fri Apr 20 04:57:16 CDT 2018 Colin Ian King <colin.king@canonical.com> 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 <colin.king@canonical.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
4bc83b3f Fri Apr 20 04:57:16 CDT 2018 Colin Ian King <colin.king@canonical.com> 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 <colin.king@canonical.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>