aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c
diff options
context:
space:
mode:
authorNeilBrown <[email protected]>2015-09-24 05:25:36 +0000
committerNeilBrown <[email protected]>2015-10-02 07:23:43 +0000
commit36707bb2e7c6730d79d6cdc6d1475d3d7e94c518 (patch)
tree37ea9a4b0e716212bfd411f4c2d9e971ff8dc5f3 /drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c
parentraid5: update analysis state for failed stripe (diff)
downloadkernel-36707bb2e7c6730d79d6cdc6d1475d3d7e94c518.tar.gz
kernel-36707bb2e7c6730d79d6cdc6d1475d3d7e94c518.zip
md/raid5: don't index beyond end of array in need_this_block().
When need_this_block probably shouldn't be called when there are more than 2 failed devices, we really don't want it to try indexing beyond the end of the failed_num[] of fdev[] arrays. So limit the loops to at most 2 iterations. Reported-by: Shaohua Li <[email protected]> Signed-off-by: NeilBrown <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c')
0 files changed, 0 insertions, 0 deletions