mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
gpu: nvgpu: Cancel timeout handler before job cleanup
Cancel timeout handler before cleaning up the list of jobs. This prevents a race that makes timeout handler access already freed jobs. Bug 1814108 Change-Id: I37cfc408cb1f96b8b0e62db1ca8067a2ae43dd0e Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/1221698 (cherry picked from commit be0d146cba8dc2b1bdb7c53ae39188a4bf0ca019) Reviewed-on: http://git-master/r/1223843 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
4aef26db19
commit
f4be6c4373
@@ -1903,6 +1903,7 @@ static void gk20a_channel_clean_up_jobs(struct work_struct *work)
|
||||
platform = gk20a_get_platform(g->dev);
|
||||
|
||||
gk20a_channel_cancel_job_clean_up(c, false);
|
||||
gk20a_channel_timeout_stop(c);
|
||||
|
||||
while (1) {
|
||||
bool completed;
|
||||
|
||||
Reference in New Issue
Block a user