Skip to content

Commit 5830916

Browse files
Xin-ANXriteshk-quic
authored andcommitted
FROMLIST: drm/bridge: anx7625: Fix EDID block size at drm_edid_alloc() calling
Since DRM validates the all of EDID blocks, allocates drm_edid data structure based on the actually block count returned by the sink monitor at drm_edid_alloc() calling. Fixes: 7c585f9 ("drm/bridge: anx7625: use struct drm_edid more") Signed-off-by: Xin Ji <[email protected]> Link: https://lore.kernel.org/all/[email protected]/ Signed-off-by: Arpit Saini <[email protected]>
1 parent 5cd96d7 commit 5830916

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/bridge/analogix/anx7625.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1801,7 +1801,7 @@ static const struct drm_edid *anx7625_edid_read(struct anx7625_data *ctx)
18011801
return NULL;
18021802
}
18031803

1804-
ctx->cached_drm_edid = drm_edid_alloc(edid_buf, FOUR_BLOCK_SIZE);
1804+
ctx->cached_drm_edid = drm_edid_alloc(edid_buf, edid_num * EDID_LENGTH);
18051805
kfree(edid_buf);
18061806

18071807
out:

0 commit comments

Comments
 (0)