[PATCH] dma-buf: WARN on dmabuf release with pending attachments

2021-07-23 Thread Charan Teja Reddy
It is expected from the clients to follow the below steps on an imported dmabuf fd: a) dmabuf = dma_buf_get(fd) // Get the dmabuf from fd b) dma_buf_attach(dmabuf); // Clients attach to the dmabuf o Here the kernel does some slab allocations, say for dma_buf_attachment and may be some other slab

Re: [PATCH] dma-buf: WARN on dmabuf release with pending attachments

2021-07-23 Thread Daniel Vetter
On Fri, Jul 23, 2021 at 02:34:13PM +0200, Christian König wrote: > Am 23.07.21 um 14:31 schrieb Charan Teja Reddy: > > It is expected from the clients to follow the below steps on an imported > > dmabuf fd: > > a) dmabuf = dma_buf_get(fd) // Get the dmabuf from fd > > b) dma_buf_attach(dmabuf); //

Re: [PATCH] dma-buf: WARN on dmabuf release with pending attachments

2021-07-23 Thread Christian König
Am 23.07.21 um 14:31 schrieb Charan Teja Reddy: It is expected from the clients to follow the below steps on an imported dmabuf fd: a) dmabuf = dma_buf_get(fd) // Get the dmabuf from fd b) dma_buf_attach(dmabuf); // Clients attach to the dmabuf o Here the kernel does some slab allocations, sa