Re: [PATCH] drm/ttm: Drain workqueue before sys manager release

2023-10-16 Thread Karolina Stolarek
On 16.10.2023 13:03, Christian König wrote: Am 13.10.23 um 16:34 schrieb Karolina Stolarek: In rare cases, a delayed destruction of a BO with a system resource could stay in the workqueue until drain_workqueue() is called in ttm_device_fini(). An attempt to free a resource from an already

Re: [PATCH] drm/ttm: Drain workqueue before sys manager release

2023-10-16 Thread Christian König
Am 13.10.23 um 16:34 schrieb Karolina Stolarek: In rare cases, a delayed destruction of a BO with a system resource could stay in the workqueue until drain_workqueue() is called in ttm_device_fini(). An attempt to free a resource from an already released manager results in NULL pointer

[PATCH] drm/ttm: Drain workqueue before sys manager release

2023-10-13 Thread Karolina Stolarek
In rare cases, a delayed destruction of a BO with a system resource could stay in the workqueue until drain_workqueue() is called in ttm_device_fini(). An attempt to free a resource from an already released manager results in NULL pointer dereference. Move the step of draining and destroying the