diff options
| author | Hans Verkuil <[email protected]> | 2021-07-23 08:22:59 +0000 |
|---|---|---|
| committer | Mauro Carvalho Chehab <[email protected]> | 2021-08-04 12:43:52 +0000 |
| commit | 4108b3e6db31acc4c68133290bbcc87d4db905c9 (patch) | |
| tree | 9079c0a7f0caf4a02f8f1eabde9c4a38f788abdc /drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c | |
| parent | media: imx: add a driver for i.MX8MQ mipi csi rx phy and controller (diff) | |
| download | kernel-4108b3e6db31acc4c68133290bbcc87d4db905c9.tar.gz kernel-4108b3e6db31acc4c68133290bbcc87d4db905c9.zip | |
media: v4l2-dv-timings.c: fix wrong condition in two for-loops
These for-loops should test against v4l2_dv_timings_presets[i].bt.width,
not if i < v4l2_dv_timings_presets[i].bt.width. Luckily nothing ever broke,
since the smallest width is still a lot higher than the total number of
presets, but it is wrong.
The last item in the presets array is all 0, so the for-loop must stop
when it reaches that sentinel.
Signed-off-by: Hans Verkuil <[email protected]>
Reported-by: Krzysztof HaĆasa <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c')
0 files changed, 0 insertions, 0 deletions
