diff options
author | Colin Ian King <colin.king@canonical.com> | 2018-04-20 10:57:16 +0100 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2018-04-20 19:23:32 -0400 |
commit | 4bc83b3f272fe8f36450f9c003df49cf07ffe5fd (patch) | |
tree | f72e55b77d02470d1dfdcadca9a713a8c985ba32 /drivers/input/input-leds.c | |
parent | f286299c1d0ba5e2ca0377610307b370fe178767 (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 <colin.king@canonical.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/input/input-leds.c')
0 files changed, 0 insertions, 0 deletions