Re: [PATCH v3] drm/radeon: Fix NULL dereference when updating memory stats

2021-06-30 Thread Christian König
Am 24.06.21 um 06:51 schrieb Mikel Rychliski: radeon_ttm_bo_destroy() is attempting to access the resource object to update memory counters. However, the resource object is already freed when ttm calls this function via the destroy callback. This causes an oops when a bo is freed: BUG: k

[PATCH v3] drm/radeon: Fix NULL dereference when updating memory stats

2021-06-24 Thread Mikel Rychliski
radeon_ttm_bo_destroy() is attempting to access the resource object to update memory counters. However, the resource object is already freed when ttm calls this function via the destroy callback. This causes an oops when a bo is freed: BUG: kernel NULL pointer dereference, address: 000