diff options
| author | Colin Ian King <[email protected]> | 2018-05-30 16:41:44 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2018-06-01 14:45:05 +0000 |
| commit | 036286e28e8ece7637cc62934f7dbc89e6656940 (patch) | |
| tree | 28d73323c6b2e426253b7b26a5d6702e669ddc8e /drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c | |
| parent | drm/amdgpu: Fix NULL pointer when load kfd driver with PP block is disabled (diff) | |
| download | kernel-036286e28e8ece7637cc62934f7dbc89e6656940.tar.gz kernel-036286e28e8ece7637cc62934f7dbc89e6656940.zip | |
drm/amdgpu/df: fix potential array out-of-bounds read
The comparison with the number of elements in array df_v3_7_channel_number
is off-by-one and can produce an array out-of-bounds read if
fb_channel_number is equal to the number of elements of the array. Fix
this by changing the comparison to >= instead of >.
Detected by CoverityScan, CID#1469489 ("Out-of-bounds read")
Fixes: 13b581502d51 ("drm/amdgpu/df: implement df v3_6 callback functions (v2)")
Signed-off-by: Colin Ian King <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c')
0 files changed, 0 insertions, 0 deletions
