Files
linux/drivers/scsi
Colin Ian King 6385f2da8b scsi: isci: Fix infinite loop in while loop
[ Upstream commit 4bc83b3f27 ]

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>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-06-21 04:02:46 +09:00
..
2017-12-25 14:26:25 +01:00
2018-01-02 20:31:05 +01:00
2017-09-07 12:12:43 -07:00
2017-08-25 17:21:11 -04:00
2017-08-24 22:29:06 -04:00
2016-05-10 22:01:07 -04:00
2017-08-25 17:21:10 -04:00
2017-08-08 11:49:51 -04:00
2017-08-25 17:21:11 -04:00
2018-03-19 08:42:53 +01:00
2017-04-13 13:58:20 -04:00
2017-09-07 12:12:43 -07:00
2017-08-08 11:49:51 -04:00
2017-04-26 18:32:29 -04:00