aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorWeihang Li <liweihang@hisilicon.com>2019-06-20 16:52:42 +0800
committerDavid S. Miller <davem@davemloft.net>2019-06-26 11:59:02 -0400
commit987b4ae78e4268d22b279f65d80cc541f9f0eb53 (patch)
treee1c46571849deb539f19d186264d1638678c7e3a /tools/perf/scripts/python/export-to-postgresql.py
parentnet: hns3: remove override_pci_need_reset (diff)
downloadwireguard-linux-987b4ae78e4268d22b279f65d80cc541f9f0eb53.tar.xz
wireguard-linux-987b4ae78e4268d22b279f65d80cc541f9f0eb53.zip
net: hns3: add check to number of buffer descriptors
This patch adds check to number of bds before we allocate memory for them. If we get an invalid bd num in some cases, it will cause a memory overflow. Signed-off-by: Weihang Li <liweihang@hisilicon.com> Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions