DF-4105 / fix.diff
--- a/sys/dev/drm/amd/amdgpu/atombios_encoders.c +++ b/sys/dev/drm/amd/amdgpu/atombios_encoders.c @@ -2170,7 +2170,7 @@ if (fake_edid_record->ucFakeEDIDLength) { struct edid *edid; int edid_size = max((int)EDID_LENGTH, (int)fake_edid_record->ucFakeEDIDLength); - edid = kmalloc(edid_size, M_DRM, GFP_KERNEL); + edid = kzalloc(edid_size, M_DRM, GFP_KERNEL); if (edid) { memcpy((u8 *)edid, (u8 *)&fake_edid_record->ucFakeEDIDString[0], fake_edid_record->ucFakeEDIDLength); |