diff options
| author | Ville Syrjälä <[email protected]> | 2020-01-24 20:02:24 +0000 |
|---|---|---|
| committer | Ville Syrjälä <[email protected]> | 2020-02-14 21:30:04 +0000 |
| commit | 7304b9810a7367131dc26ced61696e7c98dd6666 (patch) | |
| tree | 41e3259c8a484005a34f49ce67d0b1bf07c7ed00 /drivers/gpu/drm/lima/lima_sched.c | |
| parent | drm/mcde: Fix Sphinx formatting (diff) | |
| download | kernel-7304b9810a7367131dc26ced61696e7c98dd6666.tar.gz kernel-7304b9810a7367131dc26ced61696e7c98dd6666.zip | |
drm/edid: Check the number of detailed timing descriptors in the CEA ext block
CEA-861 says :
"d = offset for the byte following the reserved data block.
If no data is provided in the reserved data block, then d=4.
If no DTDs are provided, then d=0."
So let's not look for DTDs when d==0. In fact let's just make that
<4 since those values would just mean that he DTDs overlap the block
header. And let's also check that d isn't so big as to declare
the descriptors to live past the block end, although the code
does already survive that case as we'd just end up with a negative
number of descriptors and the loop would not do anything.
Cc: Allen Chen <[email protected]>
Signed-off-by: Ville Syrjälä <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Acked-by: Alex Deucher <[email protected]>
Reviewed-by: Uma Shankar <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/lima/lima_sched.c')
0 files changed, 0 insertions, 0 deletions
