mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-24 02:01:36 +03:00
NET: tvnet: Fix Coverity issues
Initialize ctrl_msg to 0 before passing to function. Bug 3956683 Signed-off-by: Nagarjuna Kristam <nkristam@nvidia.com> Change-Id: I540d7d8bcc20003da5c5faea2d0d081da25527bd Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2876299 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: Manikanta Maddireddy <mmaddireddy@nvidia.com> Reviewed-by: Bitan Biswas <bbiswas@nvidia.com> GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
b3bfce4122
commit
72fa62af01
@@ -1,6 +1,6 @@
|
||||
// SPDX-License-Identifier: GPL-2.0+
|
||||
/*
|
||||
* Copyright (c) 2019-2022, NVIDIA CORPORATION. All rights reserved.
|
||||
* Copyright (c) 2019-2023, NVIDIA CORPORATION. All rights reserved.
|
||||
*/
|
||||
|
||||
#include <linux/aer.h>
|
||||
@@ -277,7 +277,7 @@ static void tvnet_host_update_link_sm(struct tvnet_priv *tvnet)
|
||||
/* One way link state machine*/
|
||||
static void tvnet_host_user_link_up_req(struct tvnet_priv *tvnet)
|
||||
{
|
||||
struct ctrl_msg msg;
|
||||
struct ctrl_msg msg = {};
|
||||
|
||||
tvnet_host_clear_data_msg_counters(tvnet);
|
||||
tvnet_host_alloc_empty_buffers(tvnet);
|
||||
@@ -289,7 +289,7 @@ static void tvnet_host_user_link_up_req(struct tvnet_priv *tvnet)
|
||||
|
||||
static void tvnet_host_user_link_down_req(struct tvnet_priv *tvnet)
|
||||
{
|
||||
struct ctrl_msg msg;
|
||||
struct ctrl_msg msg = {};
|
||||
|
||||
tvnet->rx_link_state = DIR_LINK_STATE_SENT_DOWN;
|
||||
msg.msg_id = CTRL_MSG_LINK_DOWN;
|
||||
@@ -305,7 +305,7 @@ static void tvnet_host_rcv_link_up_msg(struct tvnet_priv *tvnet)
|
||||
|
||||
static void tvnet_host_rcv_link_down_msg(struct tvnet_priv *tvnet)
|
||||
{
|
||||
struct ctrl_msg msg;
|
||||
struct ctrl_msg msg = {};
|
||||
|
||||
/* Stop using empty buffers of remote system */
|
||||
tvnet_host_stop_tx_queue(tvnet);
|
||||
|
||||
Reference in New Issue
Block a user