summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/check-perf-trace.py
diff options
context:
space:
mode:
authorYueHaibing <yuehaibing@huawei.com>2022-11-21 14:22:04 +0300
committerSaeed Mahameed <saeedm@nvidia.com>2022-11-24 11:03:21 +0300
commit3f5769a074c13d8f08455e40586600419e02a880 (patch)
treee3096929b66f2e9bdbc3ce4a57b253c9e3c8764c /tools/perf/scripts/python/check-perf-trace.py
parente87c6a832f889c093c055a30a7b8c6843e6573bf (diff)
downloadlinux-3f5769a074c13d8f08455e40586600419e02a880.tar.xz
net/mlx5: Fix uninitialized variable bug in outlen_write()
If sscanf() return 0, outlen is uninitialized and used in kzalloc(), this is unexpected. We should return -EINVAL if the string is invalid. Fixes: e126ba97dba9 ("mlx5: Add driver for Mellanox Connect-IB adapters") Signed-off-by: YueHaibing <yuehaibing@huawei.com> Reviewed-by: Leon Romanovsky <leonro@nvidia.com> Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions