summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/syscall-counts.py
diff options
context:
space:
mode:
authorPeng Li <lipeng321@huawei.com>2019-07-04 17:04:28 +0300
committerDavid S. Miller <davem@davemloft.net>2019-07-06 01:39:38 +0300
commit892951524647d593d9f5e540a56fef4e52b95c03 (patch)
treec49b0b72c33729b4e41f42528f7e16c83461366e /tools/perf/scripts/python/syscall-counts.py
parentb9a8f88373c586e357c8c203b657407437040e40 (diff)
downloadlinux-892951524647d593d9f5e540a56fef4e52b95c03.tar.xz
net: hns3: set maximum length to resp_data_len for exceptional case
If HCLGE_MBX_MAX_RESP_DATA_SIZE > HCLGE_MBX_MAX_RESP_DATA_SIZE, the memcpy will cause out of memory. So this patch just set resp_data_len to the maximum length for this case. Signed-off-by: Peng Li <lipeng321@huawei.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/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions