summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorArthur Kiyanovski <akiyano@amazon.com>2020-02-11 18:17:40 +0300
committerDavid S. Miller <davem@davemloft.net>2020-02-12 04:08:30 +0300
commit91a65b7d3ed8450f31ab717a65dcb5f9ceb5ab02 (patch)
treea6b6914faa023a6c9f2d3813d3a3ae13878f3db8 /tools/perf/scripts/python/export-to-postgresql.py
parent457fed775c97ac2c0cd1672aaf2ff2c8a6235e87 (diff)
downloadlinux-91a65b7d3ed8450f31ab717a65dcb5f9ceb5ab02.tar.xz
net: ena: fix potential crash when rxfh key is NULL
When ethtool -X is called without an hkey, ena_com_fill_hash_function() is called with key=NULL, which is passed to memcpy causing a crash. This commit fixes this issue by checking key is not NULL. Fixes: 1738cd3ed342 ("net: ena: Add a driver for Amazon Elastic Network Adapters (ENA)") Signed-off-by: Sameeh Jubran <sameehj@amazon.com> Signed-off-by: Arthur Kiyanovski <akiyano@amazon.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