aboutsummaryrefslogtreecommitdiffstats
path: root/fs/proc/array.c
diff options
context:
space:
mode:
authorColin Ian King <[email protected]>2018-04-20 09:57:16 +0000
committerMartin K. Petersen <[email protected]>2018-04-20 23:23:32 +0000
commit4bc83b3f272fe8f36450f9c003df49cf07ffe5fd (patch)
treef72e55b77d02470d1dfdcadca9a713a8c985ba32 /fs/proc/array.c
parentscsi: storvsc: Set up correct queue depth values for IDE devices (diff)
downloadkernel-4bc83b3f272fe8f36450f9c003df49cf07ffe5fd.tar.gz
kernel-4bc83b3f272fe8f36450f9c003df49cf07ffe5fd.zip
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 <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'fs/proc/array.c')
0 files changed, 0 insertions, 0 deletions