aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/gpu/drm/i915/gvt/dmabuf.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/gvt/dmabuf.c b/drivers/gpu/drm/i915/gvt/dmabuf.c
index c104f041d0f4..41c8ebc60c63 100644
--- a/drivers/gpu/drm/i915/gvt/dmabuf.c
+++ b/drivers/gpu/drm/i915/gvt/dmabuf.c
@@ -212,6 +212,8 @@ static int vgpu_get_plane_info(struct drm_device *dev,
212 struct intel_vgpu_cursor_plane_format c; 212 struct intel_vgpu_cursor_plane_format c;
213 int ret, tile_height = 1; 213 int ret, tile_height = 1;
214 214
215 memset(info, 0, sizeof(*info));
216
215 if (plane_id == DRM_PLANE_TYPE_PRIMARY) { 217 if (plane_id == DRM_PLANE_TYPE_PRIMARY) {
216 ret = intel_vgpu_decode_primary_plane(vgpu, &p); 218 ret = intel_vgpu_decode_primary_plane(vgpu, &p);
217 if (ret) 219 if (ret)