summaryrefslogtreecommitdiff
path: root/net/mac802154/main.c
diff options
context:
space:
mode:
authorArthur Kiyanovski <akiyano@amazon.com>2020-02-11 15:17:40 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-03-05 16:43:39 +0100
commit5bc08766658f647923ea17af28083ceb61ff1f66 (patch)
treeeea01668acd84727985bf77f8c9805149772fb40 /net/mac802154/main.c
parentc17f8a738f59de0f46fbe14c2383afff5ff165ce (diff)
net: ena: fix potential crash when rxfh key is NULL
[ Upstream commit 91a65b7d3ed8450f31ab717a65dcb5f9ceb5ab02 ] 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> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'net/mac802154/main.c')
0 files changed, 0 insertions, 0 deletions