Re: [PATCH] amdgpu: fixes memleak issue when init failed

2020-04-22 Thread Christian König
; Bernard Zhao ; amd-...@lists.freedesktop.org; dri- de...@lists.freedesktop.org; linux-ker...@vger.kernel.org Cc: opensource.ker...@vivo.com Subject: [PATCH] amdgpu: fixes memleak issue when init failed VRAM manager and DRM MM when init failed, there is no operaction to free kzalloc memory & re

RE: [PATCH] amdgpu: fixes memleak issue when init failed

2020-04-22 Thread Ruhl, Michael J
nborg ; Bernard >Zhao ; amd-...@lists.freedesktop.org; dri- >de...@lists.freedesktop.org; linux-ker...@vger.kernel.org >Cc: opensource.ker...@vivo.com >Subject: [PATCH] amdgpu: fixes memleak issue when init failed > >VRAM manager and DRM MM when init failed, there is no operaction >to free kzalloc

Re: [PATCH] amdgpu: fixes memleak issue when init failed

2020-04-22 Thread Christian König
ists.freedesktop.org,linux-ker...@vger.kernel.org,opensource.ker...@vivo.com 主题:Re: [PATCH] amdgpu: fixes memleak issue when init failed>Am 21.04.20 um 15:39 schrieb 赵军奎: 发件人:"Christian König" 发送日期:2020-04-21 21:02:27 收件人:"赵军奎" 抄送人:Alex Deucher ,"David (ChunMing) Zhou" ,

[PATCH] amdgpu: fixes memleak issue when init failed

2020-04-21 Thread Bernard Zhao
VRAM manager and DRM MM when init failed, there is no operaction to free kzalloc memory & remove device file. This will lead to memleak & cause stability issue. Signed-off-by: Bernard Zhao --- drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c | 24 1 file changed, 19 insertions(+

Re:Re: [PATCH] amdgpu: fixes memleak issue when init failed

2020-04-21 Thread 赵军奎
g,opensource.ker...@vivo.com 主题:Re: [PATCH] amdgpu: fixes memleak issue when init failed>Am 21.04.20 um 15:39 schrieb 赵军奎: >> 发件人:"Christian König" >> 发送日期:2020-04-21 21:02:27 >> 收件人:"赵军奎" >> 抄送人:Alex Deucher ,"David (ChunMing) Zhou" >

Re:Re: [PATCH] amdgpu: fixes memleak issue when init failed

2020-04-21 Thread 赵军奎
Cc: opensource.ker...@vivo.com Subject: Re: [PATCH] amdgpu: fixes memleak issue when init failed>Am 21.04.20 um 13:17 schrieb Bernard Zhao: >> VRAM manager and DRM MM when init failed, there is no operaction >> to free kzalloc memory & remove device file. >> This will le

Re:Re: [PATCH] amdgpu: fixes memleak issue when init failed

2020-04-21 Thread 赵军奎
g,opensource.ker...@vivo.com 主题:Re: [PATCH] amdgpu: fixes memleak issue when init failed>Am 21.04.20 um 14:09 schrieb 赵军奎: >> From: "Christian König" >> Date: 2020-04-21 19:22:49 >> To: Bernard Zhao ,Alex Deucher >> ,"David (ChunMing) Zhou" >&

Re: [PATCH] amdgpu: fixes memleak issue when init failed

2020-04-21 Thread Christian König
ists.freedesktop.org,linux-ker...@vger.kernel.org,opensource.ker...@vivo.com 主题:Re: [PATCH] amdgpu: fixes memleak issue when init failed>Am 21.04.20 um 14:09 schrieb 赵军奎: From: "Christian König" Date: 2020-04-21 19:22:49 To: Bernard Zhao ,Alex Deucher ,"David (ChunMing) Zhou" ,Davi

Re: [PATCH] amdgpu: fixes memleak issue when init failed

2020-04-21 Thread Christian König
esktop.org,linux-ker...@vger.kernel.org Cc: opensource.ker...@vivo.com Subject: Re: [PATCH] amdgpu: fixes memleak issue when init failed>Am 21.04.20 um 13:17 schrieb Bernard Zhao: VRAM manager and DRM MM when init failed, there is no operaction to free kzalloc memory & remove device file. This w

Re: [PATCH] amdgpu: fixes memleak issue when init failed

2020-04-21 Thread Christian König
Am 21.04.20 um 13:17 schrieb Bernard Zhao: VRAM manager and DRM MM when init failed, there is no operaction to free kzalloc memory & remove device file. This will lead to memleak & cause stability issue. NAK, failure to create sysfs nodes are not critical. Christian. Signed-off-by: Bernard