diff options
author | Weihang Li <liweihang@hisilicon.com> | 2019-06-20 11:52:42 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-06-26 18:59:02 +0300 |
commit | 987b4ae78e4268d22b279f65d80cc541f9f0eb53 (patch) | |
tree | e1c46571849deb539f19d186264d1638678c7e3a /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 9d5e67d1c191831da79f0a8bcff029151e3fe54b (diff) | |
download | linux-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/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions