Re: [PATCH] accel/qaic: Call DRM helper function to destroy prime GEM

2023-06-20 Thread Jeffrey Hugo
On 6/14/2023 10:15 AM, Jeffrey Hugo wrote: From: Pranjal Ramajor Asha Kanojiya smatch warning: drivers/accel/qaic/qaic_data.c:620 qaic_free_object() error: dereferencing freed memory 'obj->import_attach' obj->import_attach is detached and freed using dma_buf_detach().

Re: [PATCH] accel/qaic: Call DRM helper function to destroy prime GEM

2023-06-15 Thread Jeffrey Hugo
On 6/15/2023 1:05 AM, Christian König wrote: Am 14.06.23 um 18:15 schrieb Jeffrey Hugo: From: Pranjal Ramajor Asha Kanojiya smatch warning: drivers/accel/qaic/qaic_data.c:620 qaic_free_object() error:     dereferencing freed memory 'obj->import_attach' obj->import_attach is

Re: [PATCH] accel/qaic: Call DRM helper function to destroy prime GEM

2023-06-15 Thread Christian König
Am 14.06.23 um 18:15 schrieb Jeffrey Hugo: From: Pranjal Ramajor Asha Kanojiya smatch warning: drivers/accel/qaic/qaic_data.c:620 qaic_free_object() error: dereferencing freed memory 'obj->import_attach' obj->import_attach is detached and freed using

[PATCH] accel/qaic: Call DRM helper function to destroy prime GEM

2023-06-14 Thread Jeffrey Hugo
From: Pranjal Ramajor Asha Kanojiya smatch warning: drivers/accel/qaic/qaic_data.c:620 qaic_free_object() error: dereferencing freed memory 'obj->import_attach' obj->import_attach is detached and freed using dma_buf_detach(). But used after free to decrease the dmabuf