mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-23 01:50:07 +03:00
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:
committed by
mobile promotions
parent
1af248cfe1
commit
c21347e26e
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user