summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorJiaran Zhang <zhangjiaran@huawei.com>2020-09-19 13:03:19 +0300
committerJason Gunthorpe <jgg@nvidia.com>2020-09-24 21:56:27 +0300
commit768202a0825d447de785e87ff1ea1d3c86a71727 (patch)
treebe48f99ad26be1d5bb69246719f2e260a9c00463 /tools/perf/scripts/python/exported-sql-viewer.py
parent172505cfa3a8ee98acaa569fd3be97697b333958 (diff)
downloadlinux-768202a0825d447de785e87ff1ea1d3c86a71727.tar.xz
RDMA/hns: Solve the overflow of the calc_pg_sz()
calc_pg_sz() may gets a data calculation overflow if the PAGE_SIZE is 64 KB and hop_num is 2. It is because that all variables involved in calculation are defined in type of int. So change the type of bt_chunk_size, buf_chunk_size and obj_per_chunk_default to u64. Fixes: ba6bb7e97421 ("RDMA/hns: Add interfaces to get pf capabilities from firmware") Link: https://lore.kernel.org/r/1600509802-44382-6-git-send-email-liweihang@huawei.com Signed-off-by: Jiaran Zhang <zhangjiaran@huawei.com> Signed-off-by: Weihang Li <liweihang@huawei.com> Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions