Re: [PATCH] amdgpu: fix missing deinit on vamgr_32

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx> wrote:
> From: "monk.liu" <monk.liu@xxxxxxx>
>
> Signed-off-by: monk.liu <monk.liu@xxxxxxx>
> Signed-off-by: Alex Deucher <alexander.deucher@xxxxxxx>
> ---
>  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
_______________________________________________
dri-devel mailing list
dri-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/dri-devel




[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux