diff options
author | 2019-07-04 22:04:28 +0800 | |
---|---|---|
committer | 2019-07-05 15:39:38 -0700 | |
commit | 892951524647d593d9f5e540a56fef4e52b95c03 (patch) | |
tree | c49b0b72c33729b4e41f42528f7e16c83461366e /tools/perf/scripts/python/export-to-postgresql.py | |
parent | net: hns3: bitwise operator should use unsigned type (diff) | |
download | wireguard-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