commit | c60e22f7199b5fe7cee4007ccb3b27bb8a506476 | [log] [tgz] |
---|---|---|
author | Takashi Iwai <tiwai@suse.de> | Fri Mar 30 22:45:11 2018 +0200 |
committer | Alex Deucher <alexander.deucher@amd.com> | Tue Apr 03 13:08:46 2018 -0500 |
tree | 2701d0ed3e88ce4dade4175ba5da665aa4c0a5fd | |
parent | 41212e2fe72b26ded7ed78224d9eab720c2891e2 [diff] |
drm/amdgpu: Fix memory leaks at amdgpu_init() error path 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 <tiwai@suse.de> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>