[PATCH] amdgpu: fix missing deinit on vamgr_32
Emil Velikov
emil.l.velikov at gmail.com
Tue Sep 1 00:15:00 PDT 2015
Hi Alex,
Still reading through/learning about amdgpu, so a couple of (not too
silly) questions :-)
On 31 August 2015 at 15:36, Alex Deucher <alexdeucher at gmail.com> wrote:
> From: "monk.liu" <monk.liu at amd.com>
>
> Signed-off-by: monk.liu <monk.liu at amd.com>
> Signed-off-by: Alex Deucher <alexander.deucher at amd.com>
> ---
> amdgpu/amdgpu_device.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/amdgpu/amdgpu_device.c b/amdgpu/amdgpu_device.c
> index 75b12e2..e5a923e 100644
> --- a/amdgpu/amdgpu_device.c
> +++ b/amdgpu/amdgpu_device.c
> @@ -132,6 +132,8 @@ static void amdgpu_device_free_internal(amdgpu_device_handle dev)
> {
Do we want to keep fd_mutex held as/just before we get here ?
> amdgpu_vamgr_deinit(dev->vamgr);
> free(dev->vamgr);
> + amdgpu_vamgr_deinit(dev->vamgr_32);
> + free(dev->vamgr_32);
Based off amdgpu_device_initialize(), shouldn't one also keep track of
the 'start' va and and "free" it ?
> util_hash_table_destroy(dev->bo_flink_names);
> util_hash_table_destroy(dev->bo_handles);
Mildly related suggestion for a follow up patch -
amdgpu_device_initialize() seems to be missing the these two.
Thanks
Emil
More information about the dri-devel
mailing list