提交 65318734 编写于 作者: J Jani Nikula

drm/i915/opregion: make VBT size limit more strict

The VBT in OpRegion should fit in mailbox #4.
Reviewed-by: NVille Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: NJani Nikula <jani.nikula@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/4bdb3f5820e3dbd1cdfa7b65cadfce4f80b880f0.1450089383.git.jani.nikula@intel.com
上级 f0067a31
......@@ -988,7 +988,7 @@ int intel_opregion_setup(struct drm_device *dev)
if (!dmi_check_system(intel_no_opregion_vbt)) {
void *vbt = base + OPREGION_VBT_OFFSET;
u32 vbt_size = OPREGION_SIZE - OPREGION_VBT_OFFSET;
u32 vbt_size = OPREGION_ASLE_EXT_OFFSET - OPREGION_VBT_OFFSET;
if (intel_bios_is_valid_vbt(vbt, vbt_size)) {
DRM_DEBUG_KMS("Found valid VBT in ACPI OpRegion\n");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册