mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-24 10:11:26 +03:00
linux: kmd: static analysis TOP25 03/05 Part 9
Under the following path: - drivers/media/platform/tegra/camera/fusa-capture/capture-vi-channel.c - drivers/media/platform/tegra/camera/vi/mc_common.c - drivers/platform/tegra/rtcpu/capture-ivc.c - drivers/platform/tegra/rtcpu/ivc-bus.c - drivers/platform/tegra/rtcpu/reset-group.c Jira CAMERASW-32533 Change-Id: I4b3d36c77ab09cd930c80fe07846fd9e0e9c28df Signed-off-by: Zhiyuan Wang <zhiwang@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3314106 Reviewed-by: Frank Chen <frankc@nvidia.com> Tested-by: Patrick Young <payoung@nvidia.com> Reviewed-by: Ajith Kumar <ajithk@nvidia.com> GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com> Reviewed-by: Semi Malinen <smalinen@nvidia.com>
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
// SPDX-License-Identifier: GPL-2.0
|
||||
// Copyright (c) 2022-2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
||||
// SPDX-License-Identifier: GPL-2.0-only
|
||||
// SPDX-FileCopyrightText: Copyright (c) 2022-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
||||
|
||||
#include <nvidia/conftest.h>
|
||||
|
||||
@@ -477,8 +477,10 @@ static int tegra_capture_ivc_probe(struct tegra_ivc_channel *chan)
|
||||
INIT_LIST_HEAD(&civc->avl_ctx_list);
|
||||
|
||||
/* Add the transaction cb-contexts to the available list */
|
||||
mutex_lock(&civc->cb_ctx_lock);
|
||||
for (i = TRANS_ID_START_IDX; i < ARRAY_SIZE(civc->cb_ctx); i++)
|
||||
list_add_tail(&civc->cb_ctx[i].node, &civc->avl_ctx_list);
|
||||
mutex_unlock(&civc->cb_ctx_lock);
|
||||
|
||||
tegra_ivc_channel_set_drvdata(chan, civc);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user