aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZhenyu Wang <zhenyuw@linux.intel.com>2018-02-22 02:16:12 -0500
committerZhenyu Wang <zhenyuw@linux.intel.com>2018-03-06 00:19:24 -0500
commit0102d0d9227ae7412e3419973c8cefa69369a9a7 (patch)
tree67983b5e955be7adf15d50e02d8a9f1b00533b32
parent7e534ac985d419c011190bc1aa14affdff4ce2e2 (diff)
drm/i915/gvt: remove gvt max port definition
Remove GVT-g private max port definition but use i915 one. Fix error caused by: drivers/gpu/drm/i915//gvt/handlers.c:871 dp_aux_ch_ctl_mmio_write() error: buffer overflow 'display->ports' 5 <= 5 Reviewed-by: Zhi Wang <zhi.a.wang@intel.com> Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
-rw-r--r--drivers/gpu/drm/i915/gvt/gvt.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/gpu/drm/i915/gvt/gvt.h b/drivers/gpu/drm/i915/gvt/gvt.h
index 9131638e3999..1df5a2a2dfdf 100644
--- a/drivers/gpu/drm/i915/gvt/gvt.h
+++ b/drivers/gpu/drm/i915/gvt/gvt.h
@@ -132,11 +132,9 @@ struct intel_vgpu_opregion {
132 132
133#define vgpu_opregion(vgpu) (&(vgpu->opregion)) 133#define vgpu_opregion(vgpu) (&(vgpu->opregion))
134 134
135#define INTEL_GVT_MAX_PORT 5
136
137struct intel_vgpu_display { 135struct intel_vgpu_display {
138 struct intel_vgpu_i2c_edid i2c_edid; 136 struct intel_vgpu_i2c_edid i2c_edid;
139 struct intel_vgpu_port ports[INTEL_GVT_MAX_PORT]; 137 struct intel_vgpu_port ports[I915_MAX_PORTS];
140 struct intel_vgpu_sbi sbi; 138 struct intel_vgpu_sbi sbi;
141}; 139};
142 140