[PATCH v3 1/3] drm/prime: Pass the right module owner through to dma_buf_export()

2016-09-30 Thread Christian König
Am 30.09.2016 um 15:59 schrieb Chris Wilson: > dma_buf_export() adds a reference to the owning module to the dmabuf (to > prevent the driver from being unloaded whilst a third party still refers > to the dmabuf). However, drm_gem_prime_export() was passing its own > THIS_MODULE (i.e. drm.ko) rather

[PATCH v3 1/3] drm/prime: Pass the right module owner through to dma_buf_export()

2016-09-30 Thread Chris Wilson
dma_buf_export() adds a reference to the owning module to the dmabuf (to prevent the driver from being unloaded whilst a third party still refers to the dmabuf). However, drm_gem_prime_export() was passing its own THIS_MODULE (i.e. drm.ko) rather than the driver. Extract the right owner from the de