mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 17:36:20 +03:00
gpu: nvgpu: fix uninitialized pointer
Destroy the profile lock in the if block that initializes the pointer profile. CID 10165006 CID 631480 Change-Id: I16935723c1cacf6434d4cb79a1671f5422d814e7 Signed-off-by: Sagar Kamble <skamble@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2844111 Reviewed-by: svcacv <svcacv@nvidia.com> Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: svc-mobile-cert <svc-mobile-cert@nvidia.com> Reviewed-by: Sachin Nikam <snikam@nvidia.com> Reviewed-by: Ankur Kishore <ankkishore@nvidia.com> GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
4dec633f5f
commit
ee2377b879
@@ -1,7 +1,7 @@
|
||||
/*
|
||||
* gk20a clock scaling profile
|
||||
*
|
||||
* Copyright (c) 2013-2022, NVIDIA Corporation. All rights reserved.
|
||||
* Copyright (c) 2013-2023, NVIDIA Corporation. All rights reserved.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it
|
||||
* under the terms and conditions of the GNU General Public License,
|
||||
@@ -653,9 +653,9 @@ void gk20a_scale_exit(struct device *dev)
|
||||
if (err) {
|
||||
nvgpu_err(g, "failed to remove max freq notifier %d", err);
|
||||
}
|
||||
}
|
||||
|
||||
nvgpu_mutex_destroy(&profile->lock);
|
||||
}
|
||||
#else
|
||||
if (platform->qos_notify) {
|
||||
pm_qos_remove_min_notifier(PM_QOS_GPU_FREQ_BOUNDS,
|
||||
|
||||
Reference in New Issue
Block a user