gpu: nvgpu: fix missing sync_lock acquire

sync_lock is released without acquiring it in channel free.
Fix it by adding acquire sync_lock.

Bug 2613870

Change-Id: I790636c3209414041a1962d6f3ef5f03cc827561
Signed-off-by: Seema Khowala <seemaj@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/2176961
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Seema Khowala
2019-08-16 11:38:52 -07:00
committed by mobile promotions
parent 1af248cfe1
commit c21347e26e

View File

@@ -1714,6 +1714,7 @@ static void channel_free(struct nvgpu_channel *ch, bool force)
#endif
}
nvgpu_mutex_acquire(&ch->sync_lock);
if (ch->user_sync != NULL) {
/*
* Set user managed syncpoint to safe state