Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 95663948 authored by Alex Deucher's avatar Alex Deucher
Browse files

drm/radeon: fix LCD record parsing



If the LCD table contains an EDID record, properly account
for the edid size when walking through the records.

This should fix error messages about unknown LCD records.

Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
parent 9cb84ab0
Loading
Loading
Loading
Loading
+3 −1
Original line number Original line Diff line number Diff line
@@ -1681,7 +1681,9 @@ struct radeon_encoder_atom_dig *radeon_atombios_get_lvds_info(struct
								kfree(edid);
								kfree(edid);
						}
						}
					}
					}
					record += sizeof(ATOM_FAKE_EDID_PATCH_RECORD);
					record += fake_edid_record->ucFakeEDIDLength ?
						fake_edid_record->ucFakeEDIDLength + 2 :
						sizeof(ATOM_FAKE_EDID_PATCH_RECORD);
					break;
					break;
				case LCD_PANEL_RESOLUTION_RECORD_TYPE:
				case LCD_PANEL_RESOLUTION_RECORD_TYPE:
					panel_res_record = (ATOM_PANEL_RESOLUTION_PATCH_RECORD *)record;
					panel_res_record = (ATOM_PANEL_RESOLUTION_PATCH_RECORD *)record;