Re: [PATCH 1/2] drm/amdgpu: Fix memory leaks at amdgpu_init() error path

2018-04-02 Thread Alex Deucher
On Fri, Mar 30, 2018 at 4:45 PM, Takashi Iwai wrote: > amdgpu driver checks vgacon_text_force() after some initializations > but without cleaning up. This will result in leaks. > > Move the check of vgacon_text_force() to the beginning of > amdgpu_init() for fixing it and also for optimization. >

[PATCH 1/2] drm/amdgpu: Fix memory leaks at amdgpu_init() error path

2018-03-30 Thread Takashi Iwai
amdgpu driver checks vgacon_text_force() after some initializations but without cleaning up. This will result in leaks. Move the check of vgacon_text_force() to the beginning of amdgpu_init() for fixing it and also for optimization. Signed-off-by: Takashi Iwai --- drivers/gpu/drm/amd/amdgpu/am