Files
linux/drivers/scsi/isci
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
..
2012-07-03 12:09:32 -07:00
2016-04-18 11:23:24 +02:00
2014-11-27 16:40:24 +01:00