Re: [PATCH] drm/ttm: Fix bo_global and mem_global kfree error

2018-11-06 Thread Zhang, Jerry(Junwei)
On 11/6/18 7:59 PM, Christian König wrote: Am 06.11.18 um 12:54 schrieb Trigger Huang: ttm_bo_glob and ttm_mem_glob are defined as structure instance, while not allocated by kzalloc, so kfree should not be invoked to release them anymore. Otherwise, it will cause the following kernel BUG when

Re: [PATCH] drm/ttm: Fix bo_global and mem_global kfree error

2018-11-06 Thread Christian König
Am 06.11.18 um 12:54 schrieb Trigger Huang: ttm_bo_glob and ttm_mem_glob are defined as structure instance, while not allocated by kzalloc, so kfree should not be invoked to release them anymore. Otherwise, it will cause the following kernel BUG when unloading amdgpu module [ 48.419294]

[PATCH] drm/ttm: Fix bo_global and mem_global kfree error

2018-11-06 Thread Trigger Huang
ttm_bo_glob and ttm_mem_glob are defined as structure instance, while not allocated by kzalloc, so kfree should not be invoked to release them anymore. Otherwise, it will cause the following kernel BUG when unloading amdgpu module [ 48.419294] kernel BUG at