Merge "dma-buf: WARN on dmabuf release with pending attachments"

This commit is contained in:
qctecmdr 2021-09-06 06:07:41 -07:00 committed by Gerrit - the friendly Code Review server
commit 3b06ec126c

View File

@ -115,6 +115,7 @@ static void dma_buf_release(struct dentry *dentry)
if (dmabuf->resv == (struct dma_resv *)&dmabuf[1]) if (dmabuf->resv == (struct dma_resv *)&dmabuf[1])
dma_resv_fini(dmabuf->resv); dma_resv_fini(dmabuf->resv);
WARN_ON(!list_empty(&dmabuf->attachments));
module_put(dmabuf->owner); module_put(dmabuf->owner);
kfree(dmabuf->name); kfree(dmabuf->name);
kfree(msm_dma_buf); kfree(msm_dma_buf);