summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorJiaran Zhang <zhangjiaran@huawei.com>2021-09-13 21:08:24 +0800
committerDavid S. Miller <davem@davemloft.net>2021-09-13 14:25:37 +0100
commit472430a7b066f19afa1b55867d621b2d6d323e0d (patch)
treec138e807379524c55504d95b9fcc0144762f77a0 /tools/perf/scripts/python/stackcollapse.py
parentb81d8948746520f989e86d66292ff72b5056114a (diff)
net: hns3: fix the exception when query imp info
When the command for querying imp info is issued to the firmware, if the firmware does not support the command, the returned value of bd num is 0. Add protection mechanism before alloc memory to prevent apply for 0-length memory. Fixes: 0b198b0d80ea ("net: hns3: refactor dump m7 info of debugfs") Signed-off-by: Jiaran Zhang <zhangjiaran@huawei.com> Signed-off-by: Guangbin Huang <huangguangbin2@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions