diff options
author | Deepak Nibade <dnibade@nvidia.com> | 2017-10-31 03:53:45 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-11-02 08:11:11 -0400 |
commit | d256b2aa5246af46ae6e3a938ba0f974254a5910 (patch) | |
tree | bf0cc43b3d5ec28821b56bf6d28f369183dd271d /drivers/gpu/nvgpu/boardobj/boardobjgrpmask.c | |
parent | 0aa4cea63b906401df1bece74cef4a566054cf59 (diff) |
gpu: nvgpu: fix mutex leak on fecs_mutex
In gk20a_gr_reset(), we acquire g->gr.fecs_mutex and call a bunch of APIs
But in case any of these APIs fail, we don't release the mutex and just
return the error leaking the mutex
So the next attempt to acquire g->gr.fecs_mutex results in a deadlock
Fix this by releasing the mutex before returning error
Bug 2015370
Change-Id: I9a0214ff53515f819c6566c7d44d1898027416e1
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1589062
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/boardobj/boardobjgrpmask.c')
0 files changed, 0 insertions, 0 deletions