> -----Original Message-----
> From: Cheng, Yao
> Sent: Saturday, November 22, 2014 3:07
> To: [email protected]; [email protected];
> [email protected]; Kelley, Sean V; Chehab, John
> Cc: Jiang, Fei; [email protected]; [email protected];
> [email protected]; [email protected];
> [email protected]; [email protected]; Cheng, Yao
> Subject: [RFC PATCH v3 2/4] drm/ipvr: drm driver for VED
> 
> +
> +int ipvr_gem_mmap_offset_ioctl(struct drm_device *dev,
> +                             void *data, struct drm_file *file_priv)
> +{
> +     int ret;
> +     struct drm_ipvr_gem_mmap_offset *args = data;
> +     struct drm_ipvr_gem_object *obj;
> +
> +     IPVR_DEBUG_ENTRY("getting mmap offset for BO %u.\n", args-
> >handle);
> +     obj = to_ipvr_bo(drm_gem_object_lookup(dev, file_priv, args-
> >handle));
> +
> +     /* create map offset */
> +     ret = drm_gem_create_mmap_offset(&obj->base);
> +     if (ret) {
> +             IPVR_ERROR("could not allocate mmap offset: %d\n", ret);
> +             return ret;
> +     }
> +     args->offset = drm_vma_node_offset_addr(&obj->base.vma_node);
> +     return 0;
> +}

I missed an unreferenced here.
_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

Reply via email to