From c21347e26e9f69d6a35b1788915df893c05459a9 Mon Sep 17 00:00:00 2001 From: Seema Khowala Date: Fri, 16 Aug 2019 11:38:52 -0700 Subject: [PATCH] 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 Reviewed-on: https://git-master.nvidia.com/r/2176961 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/common/fifo/channel.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/nvgpu/common/fifo/channel.c b/drivers/gpu/nvgpu/common/fifo/channel.c index 358211110..c55c8ed9e 100644 --- a/drivers/gpu/nvgpu/common/fifo/channel.c +++ b/drivers/gpu/nvgpu/common/fifo/channel.c @@ -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