aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/gpu/drm/vmwgfx/vmwgfx_fence.c3
-rw-r--r--drivers/gpu/drm/vmwgfx/vmwgfx_resource.c3
2 files changed, 2 insertions, 4 deletions
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_fence.c b/drivers/gpu/drm/vmwgfx/vmwgfx_fence.c
index 35d5f61fc7e4..15fb26088d68 100644
--- a/drivers/gpu/drm/vmwgfx/vmwgfx_fence.c
+++ b/drivers/gpu/drm/vmwgfx/vmwgfx_fence.c
@@ -953,8 +953,7 @@ int vmw_event_fence_action_create(struct drm_file *file_priv,
953 uint32_t *tv_usec, 953 uint32_t *tv_usec,
954 bool interruptible) 954 bool interruptible)
955{ 955{
956 struct vmw_event_fence_action *eaction = 956 struct vmw_event_fence_action *eaction;
957 kzalloc(sizeof(*eaction), GFP_KERNEL);
958 struct ttm_mem_global *mem_glob = 957 struct ttm_mem_global *mem_glob =
959 vmw_mem_glob(fence->fman->dev_priv); 958 vmw_mem_glob(fence->fman->dev_priv);
960 struct vmw_fence_manager *fman = fence->fman; 959 struct vmw_fence_manager *fman = fence->fman;
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_resource.c b/drivers/gpu/drm/vmwgfx/vmwgfx_resource.c
index c7cff3debe11..86c5e4cceb31 100644
--- a/drivers/gpu/drm/vmwgfx/vmwgfx_resource.c
+++ b/drivers/gpu/drm/vmwgfx/vmwgfx_resource.c
@@ -1255,8 +1255,7 @@ int vmw_surface_define_ioctl(struct drm_device *dev, void *data,
1255 struct drm_file *file_priv) 1255 struct drm_file *file_priv)
1256{ 1256{
1257 struct vmw_private *dev_priv = vmw_priv(dev); 1257 struct vmw_private *dev_priv = vmw_priv(dev);
1258 struct vmw_user_surface *user_srf = 1258 struct vmw_user_surface *user_srf;
1259 kmalloc(sizeof(*user_srf), GFP_KERNEL);
1260 struct vmw_surface *srf; 1259 struct vmw_surface *srf;
1261 struct vmw_resource *res; 1260 struct vmw_resource *res;
1262 struct vmw_resource *tmp; 1261 struct vmw_resource *tmp;