[PATCH] drm/prime: drop reference on imported dma-buf come from gem

Dave Airlie airlied at gmail.com
Wed Dec 19 16:48:08 PST 2012


> In drm_prime_handle_to_fd_ioctl(), flags is cleared to only support
> DRM_CLOEXEC but in gem_prime_export() callbacks of each driver, it uses
> 0600 as flags for dma_buf_export() like following.
>
> return dma_buf_export(obj, &i915_dmabuf_ops, obj->base.size, 0600);

Oops, nice catch, radeon and nouveau did the correct thing here, I'll
send a patch to fix that.

Dave.


More information about the dri-devel mailing list