mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 09:12:24 +03:00
gpu:nvgpu: fix below issue with ctrl nvs.
- Move queue lock at correct place. - Free the allocated memory. Jira NVGPU-8622 Change-Id: Ia996d80498e53fb21ddf1f1202abd6fb8e3f6168 Signed-off-by: prsethi <prsethi@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2791618 Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: svcacv <svcacv@nvidia.com> Reviewed-by: Debarshi Dutta <ddutta@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
5c8e511e48
commit
de0808ea5b
@@ -947,14 +947,14 @@ static int nvgpu_nvs_ctrl_fifo_destroy_queue(struct gk20a *g,
|
||||
}
|
||||
}
|
||||
|
||||
nvgpu_nvs_ctrl_fifo_lock_queues(g);
|
||||
|
||||
queue = nvgpu_nvs_ctrl_fifo_get_queue(g->sched_ctrl_fifo, num_queue, queue_direction, &mask);
|
||||
if (queue == NULL) {
|
||||
err = -EOPNOTSUPP;
|
||||
goto fail;
|
||||
}
|
||||
|
||||
nvgpu_nvs_ctrl_fifo_lock_queues(g);
|
||||
|
||||
if (!nvgpu_nvs_ctrl_fifo_user_is_subscribed_to_queue(user, queue)) {
|
||||
err = -EPERM;
|
||||
goto fail;
|
||||
|
||||
Reference in New Issue
Block a user