Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit da57d3ec authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "dma-buf: Remove dmabuf from db_list before releasing"

parents 96989c82 faa3e614
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -87,12 +87,12 @@ static int dma_buf_release(struct inode *inode, struct file *file)
	 */
	BUG_ON(dmabuf->cb_shared.active || dmabuf->cb_excl.active);

	dmabuf->ops->release(dmabuf);

	mutex_lock(&db_list.lock);
	list_del(&dmabuf->list_node);
	mutex_unlock(&db_list.lock);

	dmabuf->ops->release(dmabuf);

	dma_buf_ref_destroy(dmabuf);

	if (dmabuf->resv == (struct reservation_object *)&dmabuf[1])