drm/scheduler: always put last_sched fence in entity_fini
authorPixel Ding <Pixel.Ding@amd.com>
Wed, 18 Apr 2018 08:33:26 +0000 (04:33 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 15 May 2018 18:43:30 +0000 (13:43 -0500)
commita4b3996aeebbaafd2682f4db06bb5659e1653da7
tree5bcc132525c657e719075f3d18b7e9f9ddc28970
parent32d8c6620d49779600714f197611856ed503a7a5
drm/scheduler: always put last_sched fence in entity_fini

Fix the potential memleak since scheduler main thread always
hold one last_sched fence.

Signed-off-by: Pixel Ding <Pixel.Ding@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/scheduler/gpu_scheduler.c