Files
linux/drivers
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
..
2018-05-16 10:10:29 +02:00
2018-06-16 09:45:18 +02:00
2018-06-16 09:45:14 +02:00
2018-06-11 22:49:19 +02:00
2017-12-29 17:53:46 +01:00
2018-01-17 09:45:27 +01:00
2018-06-21 04:02:42 +09:00