summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/netdev-times.py
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2019-04-13 17:00:26 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-06-11 12:23:59 +0200
commit488920af3bb37153c5f446c969a3e578d1484b18 (patch)
tree0bb563de3393e48ba5a370ecd79b5c5e4d6ff8e7 /tools/perf/scripts/python/netdev-times.py
parent2ff310e6dae25b762884801b7b529679c8871608 (diff)
RDMA/cxgb4: Fix null pointer dereference on alloc_skb failure
[ Upstream commit a6d2a5a92e67d151c98886babdc86d530d27111c ] Currently if alloc_skb fails to allocate the skb a null skb is passed to t4_set_arp_err_handler and this ends up dereferencing the null skb. Avoid the NULL pointer dereference by checking for a NULL skb and returning early. Addresses-Coverity: ("Dereference null return") Fixes: b38a0ad8ec11 ("RDMA/cxgb4: Set arp error handler for PASS_ACCEPT_RPL messages") Signed-off-by: Colin Ian King <colin.king@canonical.com> Acked-by: Potnuri Bharat Teja <bharat@chelsio.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions