Merge "dma-buf: WARN on dmabuf release with pending attachments"
This commit is contained in:
commit
3b06ec126c
@ -115,6 +115,7 @@ static void dma_buf_release(struct dentry *dentry)
|
||||
if (dmabuf->resv == (struct dma_resv *)&dmabuf[1])
|
||||
dma_resv_fini(dmabuf->resv);
|
||||
|
||||
WARN_ON(!list_empty(&dmabuf->attachments));
|
||||
module_put(dmabuf->owner);
|
||||
kfree(dmabuf->name);
|
||||
kfree(msm_dma_buf);
|
||||
|
Loading…
Reference in New Issue
Block a user