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:
Antony Clince Alex
2018-11-13 10:31:30 +05:30
committed by mobile promotions
parent 7225562936
commit 4c1ece989d

View File

@@ -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)