aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorPeng Li <lipeng321@huawei.com>2019-07-04 22:04:28 +0800
committerDavid S. Miller <davem@davemloft.net>2019-07-05 15:39:38 -0700
commit892951524647d593d9f5e540a56fef4e52b95c03 (patch)
treec49b0b72c33729b4e41f42528f7e16c83461366e /tools/perf/scripts/python/export-to-postgresql.py
parentnet: hns3: bitwise operator should use unsigned type (diff)
downloadwireguard-linux-892951524647d593d9f5e540a56fef4e52b95c03.tar.xz
wireguard-linux-892951524647d593d9f5e540a56fef4e52b95c03.zip
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/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions