summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorWeihang Li <liweihang@hisilicon.com>2019-06-20 11:52:42 +0300
committerDavid S. Miller <davem@davemloft.net>2019-06-26 18:59:02 +0300
commit987b4ae78e4268d22b279f65d80cc541f9f0eb53 (patch)
treee1c46571849deb539f19d186264d1638678c7e3a /tools/perf/scripts/python
parent9d5e67d1c191831da79f0a8bcff029151e3fe54b (diff)
downloadlinux-987b4ae78e4268d22b279f65d80cc541f9f0eb53.tar.xz
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')
0 files changed, 0 insertions, 0 deletions