mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
gpu: nvgpu: fixed dangling ce2_app pointer
The ce2_destroy routine was not clearning the pointer to NULL causing leading to dangling pointer which causes a system crash on system resume. Bug 2437663 Change-Id: If6634be983f9cd42f958d792a73c77c79b4884c3 Signed-off-by: Antony Clince Alex <aalex@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1949450 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
7225562936
commit
4c1ece989d
@@ -418,6 +418,7 @@ void gk20a_ce_destroy(struct gk20a *g)
|
||||
nvgpu_mutex_destroy(&ce_app->app_mutex);
|
||||
free:
|
||||
nvgpu_kfree(g, ce_app);
|
||||
g->ce_app = NULL;
|
||||
}
|
||||
|
||||
void gk20a_ce_suspend(struct gk20a *g)
|
||||
|
||||
Reference in New Issue
Block a user