These variables get allocated twice so the first allocation is a
memory leak.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Thomas Hellstrom <thellstrom@vmware.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
                                  uint32_t *tv_usec,
                                  bool interruptible)
 {
-       struct vmw_event_fence_action *eaction =
-               kzalloc(sizeof(*eaction), GFP_KERNEL);
+       struct vmw_event_fence_action *eaction;
        struct ttm_mem_global *mem_glob =
                vmw_mem_glob(fence->fman->dev_priv);
        struct vmw_fence_manager *fman = fence->fman;
 
                             struct drm_file *file_priv)
 {
        struct vmw_private *dev_priv = vmw_priv(dev);
-       struct vmw_user_surface *user_srf =
-           kmalloc(sizeof(*user_srf), GFP_KERNEL);
+       struct vmw_user_surface *user_srf;
        struct vmw_surface *srf;
        struct vmw_resource *res;
        struct vmw_resource *tmp;