Reviewed-by: Tom St Denis <tom.stdenis@amd.com>
Reported-by: Christian Inci <chris.pcguy.inci@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
unsigned i;
/* Enable pflip interrupts */
- for (i = 0; i <= adev->mode_info.num_crtc; i++)
+ for (i = 0; i < adev->mode_info.num_crtc; i++)
amdgpu_irq_get(adev, &adev->pageflip_irq, i);
}
unsigned i;
/* Disable pflip interrupts */
- for (i = 0; i <= adev->mode_info.num_crtc; i++)
+ for (i = 0; i < adev->mode_info.num_crtc; i++)
amdgpu_irq_put(adev, &adev->pageflip_irq, i);
}