summaryrefslogtreecommitdiffstats
path: root/net/atm/lec.c
diff options
context:
space:
mode:
authorRoy Novich <royno@nvidia.com>2023-05-07 16:57:43 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-05-30 12:57:45 +0100
commit8eb35b1aca842963182e8e7c70b6238ee6461941 (patch)
treecac0ed24d84950974c592251dccee106b94727e8 /net/atm/lec.c
parent4d3ae448e850019449024a02aec814e1c889111c (diff)
downloadlinux-stable-8eb35b1aca842963182e8e7c70b6238ee6461941.tar.gz
linux-stable-8eb35b1aca842963182e8e7c70b6238ee6461941.tar.bz2
linux-stable-8eb35b1aca842963182e8e7c70b6238ee6461941.zip
linux/dim: Do nothing if no time delta between samples
[ Upstream commit 162bd18eb55adf464a0fa2b4144b8d61c75ff7c2 ] Add return value for dim_calc_stats. This is an indication for the caller if curr_stats was assigned by the function. Avoid using curr_stats uninitialized over {rdma/net}_dim, when no time delta between samples. Coverity reported this potential use of an uninitialized variable. Fixes: 4c4dbb4a7363 ("net/mlx5e: Move dynamic interrupt coalescing code to include/linux") Fixes: cb3c7fd4f839 ("net/mlx5e: Support adaptive RX coalescing") Signed-off-by: Roy Novich <royno@nvidia.com> Reviewed-by: Aya Levin <ayal@nvidia.com> Reviewed-by: Saeed Mahameed <saeedm@nvidia.com> Signed-off-by: Tariq Toukan <tariqt@nvidia.com> Reviewed-by: Leon Romanovsky <leonro@nvidia.com> Reviewed-by: Michal Kubiak <michal.kubiak@intel.com> Link: https://lore.kernel.org/r/20230507135743.138993-1-tariqt@nvidia.com Signed-off-by: Paolo Abeni <pabeni@redhat.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'net/atm/lec.c')
0 files changed, 0 insertions, 0 deletions